Merge pull request #873 from auouymous/youtube-drm

Detect new key name for youtube DRM content.
This commit is contained in:
Eric Le Lay 2020-09-14 08:23:53 +02:00 committed by GitHub
commit 3f9d6ec21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)