Merge pull request #873 from auouymous/youtube-drm
Detect new key name for youtube DRM content.
This commit is contained in:
commit
3f9d6ec21f
|
@ -272,7 +272,7 @@ def get_real_download_url(url, allow_partial, preferred_fmt_ids=None):
|
|||
fmt_id_url_map = sorted(find_urls(page), reverse=True)
|
||||
|
||||
if not fmt_id_url_map:
|
||||
drm = re.search('%22cipher%22%3A', page)
|
||||
drm = re.search('%22(cipher|signatureCipher)%22%3A', page)
|
||||
if drm is not None:
|
||||
raise YouTubeError('Unsupported DRM content found for video ID "%s"' % vid)
|
||||
raise YouTubeError('No formats found for video ID "%s"' % vid)
|
||||
|
|
Loading…
Reference in New Issue