Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--dump-json broken for Twitch in 2023.06.21 but works fine on 2023.03.04 #7372

Closed
9 of 11 tasks
ThePhoenix576 opened this issue Jun 21, 2023 · 2 comments
Closed
9 of 11 tasks
Labels
bug Bug that is not site-specific duplicate This issue or pull request already exists regression Works in youtube-dl/older yt-dlp

Comments

@ThePhoenix576
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Provide a description that is worded well enough to be understood

yt-dlp --dump-json is broken in 2023.06.21. I tried it with 2023.03.04 and it works fine. I tried it with a few Twitch videos at first because i thought it was the video but it seems like it is just broken. All of the videos work fine on the 2023.03.04 though.

Here are some links to test :
https://www.twitch.tv/videos/1851674639
https://www.twitch.tv/videos/1851391690

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--dump-json', 'https://www.twitch.tv/videos/1851391690']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.06.21 [42f2d40b4] (pip)
[debug] Python 3.10.11 (CPython arm64 64bit) - macOS-13.4-arm64-arm-64bit (OpenSSL 3.1.1 30 May 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1848 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.06.21, Current version: stable@2023.06.21
yt-dlp is up to date (stable@2023.06.21)
ERROR: 'NoneType' object has no attribute 'format'
Traceback (most recent call last):
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1555, in wrapper
    return func(self, *args, **kwargs)
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1631, in __extract_info
    ie_result = ie.extract(url)
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 705, in extract
    self.initialize()
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 609, in initialize
    username, password = self._get_login_info()
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1335, in _get_login_info
    username, password = self._get_netrc_login_info(netrc_machine)
  File "/Users/PlaceholderUsername/.local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1300, in _get_netrc_login_info
    cmd = self.get_param('netrc_cmd', '').format(netrc_machine)
AttributeError: 'NoneType' object has no attribute 'format'
@ThePhoenix576 ThePhoenix576 added site-bug Issue with a specific website triage Untriaged issue labels Jun 21, 2023
@github-actions
Copy link
Contributor

This issue is potentially a duplicate of one of the following issues:

@bashonly
Copy link
Member

bashonly commented Jun 21, 2023

Duplicate of #7367

fixed in master, install from master branch with pip
or use --netrc-cmd "" or --netrc-cmd= as workaround.
(or wait for next proper release, coming soon)

@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2023
@bashonly bashonly added bug Bug that is not site-specific duplicate This issue or pull request already exists regression Works in youtube-dl/older yt-dlp and removed site-bug Issue with a specific website triage Untriaged issue potential-duplicate labels Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific duplicate This issue or pull request already exists regression Works in youtube-dl/older yt-dlp
Projects
None yet
Development

No branches or pull requests

2 participants