Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Potentially related to: #22188
Verbose log
(Note, this works fine when verbose. Hence I'm posting verbose and non-verbose
Non-Verbose (Fails)
PS D:> .\youtube-dl.exe -F https://www.youtube.com/watch?v=jpef1-twAKo
[youtube] jpef1-twAKo: Downloading webpage
[youtube] jpef1-twAKo: Downloading embed webpage
[youtube] jpef1-twAKo: Refetching age-gated info webpage
Traceback (most recent call last):
File "main.py", line 19, in
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl_init_.py", line 474, in main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl_init_.py", line 464, in _real_main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 2019, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 532, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\youtube.py", line 2103, in real_extract
File "C:\Python\Python34\lib\json_init.py", line 312, in loads
TypeError: the JSON object must be str, not 'NoneType'
Verbose version (working)
PS D:> .\youtube-dl.exe -F https://www.youtube.com/watch?v=jpef1-twAKo --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', 'https://www.youtube.com/watch?v=jpef1-twAKo', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.3.1-full_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] jpef1-twAKo: Refetching age-gated info webpage
[youtube] {18} signature length 111, html5 player 4b1ba5ea
[youtube] {22} signature length 111, html5 player 4b1ba5ea
[youtube] {137} signature length 111, html5 player 4b1ba5ea
[youtube] {248} signature length 107, html5 player 4b1ba5ea
[youtube] {299} signature length 111, html5 player 4b1ba5ea
[youtube] {303} signature length 111, html5 player 4b1ba5ea
[youtube] {136} signature length 107, html5 player 4b1ba5ea
[youtube] {247} signature length 111, html5 player 4b1ba5ea
[youtube] {298} signature length 111, html5 player 4b1ba5ea
[youtube] {302} signature length 111, html5 player 4b1ba5ea
[youtube] {135} signature length 107, html5 player 4b1ba5ea
[youtube] {244} signature length 111, html5 player 4b1ba5ea
[youtube] {134} signature length 111, html5 player 4b1ba5ea
[youtube] {243} signature length 111, html5 player 4b1ba5ea
[youtube] {133} signature length 111, html5 player 4b1ba5ea
[youtube] {242} signature length 111, html5 player 4b1ba5ea
[youtube] {160} signature length 107, html5 player 4b1ba5ea
[youtube] {278} signature length 111, html5 player 4b1ba5ea
[youtube] {140} signature length 111, html5 player 4b1ba5ea
[youtube] {249} signature length 111, html5 player 4b1ba5ea
[youtube] {250} signature length 111, html5 player 4b1ba5ea
[youtube] {251} signature length 111, html5 player 4b1ba5ea
[info] Available formats for jpef1-twAKo:
format code extension resolution note
249 webm audio only tiny 66k , opus @ 50k (48000Hz), 15.60MiB
250 webm audio only tiny 86k , opus @ 70k (48000Hz), 20.51MiB
140 m4a audio only tiny 130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 38.25MiB
251 webm audio only tiny 165k , opus @160k (48000Hz), 40.24MiB
278 webm 256x144 144p 112k , webm container, vp9, 30fps, video only, 28.27MiB
160 mp4 256x144 144p 114k , avc1.4d400c, 30fps, video only, 28.74MiB
133 mp4 426x240 240p 251k , avc1.4d4015, 30fps, video only, 58.36MiB
242 webm 426x240 240p 254k , vp9, 30fps, video only, 62.71MiB
243 webm 640x360 360p 559k , vp9, 30fps, video only, 115.24MiB
134 mp4 640x360 360p 651k , avc1.4d401e, 30fps, video only, 145.93MiB
244 webm 854x480 480p 941k , vp9, 30fps, video only, 205.86MiB
135 mp4 854x480 480p 1192k , avc1.4d401f, 30fps, video only, 269.38MiB
247 webm 1280x720 720p 2057k , vp9, 30fps, video only, 407.46MiB
136 mp4 1280x720 720p 2404k , avc1.4d401f, 30fps, video only, 490.97MiB
302 webm 1280x720 720p60 3006k , vp9, 60fps, video only, 689.61MiB
298 mp4 1280x720 720p60 3548k , avc1.4d4020, 60fps, video only, 768.67MiB
248 webm 1920x1080 1080p 3560k , vp9, 30fps, video only, 716.28MiB
137 mp4 1920x1080 1080p 4470k , avc1.640028, 30fps, video only, 854.54MiB
303 webm 1920x1080 1080p60 5121k , vp9, 60fps, video only, 1.16GiB
299 mp4 1920x1080 1080p60 5929k , avc1.64002a, 60fps, video only, 1.30GiB
18 mp4 640x360 360p 711k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 214.33MiB
22 mp4 1280x720 720p 1757k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)
PS D:>
Description
Hi there, trying to post as much helpful info as I can, but seems Youtube-DL doesn't like parsing the age-gate page as a type isn't declared. The interesting part is whatever variable appears to get declared when using the --verbose flag and works perfectly.
Hope this helps.