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

Age Gated Video fails to parse when not using --verbose flag #26665

Open
Atreidae opened this issue Sep 22, 2020 · 0 comments
Open

Age Gated Video fails to parse when not using --verbose flag #26665

Atreidae opened this issue Sep 22, 2020 · 0 comments

Comments

@Atreidae
Copy link

@Atreidae Atreidae commented Sep 22, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.09.20
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.