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

Solved DRM issue #18769

Closed
theassyrian opened this issue Jan 7, 2019 · 0 comments
Closed

Solved DRM issue #18769

theassyrian opened this issue Jan 7, 2019 · 0 comments
Labels

Comments

@theassyrian
Copy link

@theassyrian theassyrian commented Jan 7, 2019

When you get an error like below:
youtube-dl -v https://www.youtube.com/watch?v=5IZBJqDpX5M
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=5IZBJqDpX5M']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.02
[debug] Python version 2.7.5 (CPython) - Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-centos-7.6.1810-Core
[debug] exe versions: ffmpeg N-92926-g2d580d7, ffprobe N-92926-g2d580d7
[debug] Proxy map: {}
[youtube] 5IZBJqDpX5M: Downloading webpage
[youtube] 5IZBJqDpX5M: Downloading video info webpage
ERROR: This video is DRM protected.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 793, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 508, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1682, in _real_extract
raise ExtractorError('This video is DRM protected.', expected=True)
ExtractorError: This video is DRM protected.

The fix is this:
diff /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py.sav
1681,1682c1681,1682
< #if video_info.get('license_info'):
< # raise ExtractorError('This video is DRM protected.', expected=True)

    if video_info.get('license_info'):
        raise ExtractorError('This video is DRM protected.', expected=True)

Then download seems to work ok
youtube-dl -v https://www.youtube.com/watch?v=5IZBJqDpX5M [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=5IZBJqDpX5M']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.02
[debug] Python version 2.7.5 (CPython) - Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-centos-7.6.1810-Core
[debug] exe versions: ffmpeg N-92926-g2d580d7, ffprobe N-92926-g2d580d7
[debug] Proxy map: {}
[youtube] 5IZBJqDpX5M: Downloading webpage
[youtube] 5IZBJqDpX5M: Downloading video info webpage
[youtube] 5IZBJqDpX5M: Downloading MPD manifest
WARNING: [youtube] 5IZBJqDpX5M: Skipping DASH manifest: ExtractorError(u'Failed to download MPD manifest: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://r7---sn-mv-vgq6.googlevideo.com/videoplayback?clen=5991740557&itag=227&gir=yes&pl=32&asource=youtube&ei=MwQzXN_jOYLwDfqjnPgM&expire=1546868884&signature=D9E6A18CD82BC742455CE0BDF747B69E71094A82.871E5D674546338DA7B312623B68EAD3FFEDED29&mime=video%2Fmp4&aitags=142%2C143%2C144%2C145%2C146%2C161%2C222%2C223%2C224%2C225%2C226%2C227%2C273%2C274%2C275%2C279%2C280%2C317%2C318%2C357%2C358%2C359%2C360&gcr=us&c=WEB&requiressl=yes&keepalive=yes&sparams=aid%2Caitags%2Casource%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&beids=9466585&ip=2001%3A1850%3A1%3A0%3A107%3A%3A1b&key=yt6&lmt=1544798211421554&mt=1546846176&aid=e4864126a0e95f93&source=yt_media&mv=u&fvip=3&ms=au%2Crdu&mm=31%2C29&mn=sn-mv-vgq6%2Csn-5ualdn7l&id=d48eb94e6a8e1a1b&dur=6116.616&ratebypass=yes'
[download] Destination: Moonstruck-5IZBJqDpX5M.f227.mp4
[download] 100% of 5.58GiB in 02:27
[debug] Invoking downloader on u'https://r7---sn-mv-vgq6.googlevideo.com/videoplayback?clen=294271390&itag=326&gir=yes&pl=32&asource=youtube&ei=MwQzXN_jOYLwDfqjnPgM&expire=1546868884&signature=AD9948E1E77252313B19BC520D5CC1E834DF2F84.AEB049D287B6BF522382631844AB66E2612408D1&mime=audio%2Fmp4&gcr=us&c=WEB&requiressl=yes&keepalive=yes&sparams=aid%2Casource%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&beids=9466585&ip=2001%3A1850%3A1%3A0%3A107%3A%3A1b&key=yt6&lmt=1544798758253508&mt=1546846176&aid=e4864126a0e95f93&source=yt_media&mv=u&fvip=3&ms=au%2Crdu&mm=31%2C29&mn=sn-mv-vgq6%2Csn-5ualdn7l&id=d48eb94e6a8e1a1b&dur=6116.693&ratebypass=yes'
[download] Destination: Moonstruck-5IZBJqDpX5M.f326.m4a
[download] 100% of 280.64MiB in 00:25
[ffmpeg] Merging formats into "Moonstruck-5IZBJqDpX5M.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Moonstruck-5IZBJqDpX5M.f227.mp4' -i 'file:Moonstruck-5IZBJqDpX5M.f326.m4a' -c copy -map '0✌️0' -map '1🅰️0' 'file:Moonstruck-5IZBJqDpX5M.temp.mp4'
Deleting original file Moonstruck-5IZBJqDpX5M.f227.mp4 (pass -k to keep)
Deleting original file Moonstruck-5IZBJqDpX5M.f326.m4a (pass -k to keep)

@dstftw dstftw closed this Jan 7, 2019
@dstftw dstftw added the won't fix label Jan 7, 2019
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
2 participants
You can’t perform that action at this time.