[extractor/rutube] Fix `_EMBED_REGEX`

Closes https://github.com/yt-dlp/yt-dlp/issues/4797

Authored by: coletdjnz
pull/5016/head
coletdjnz 2 years ago
parent 3c757d5ed2
commit d42763a443
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

@ -93,7 +93,7 @@ class RutubeIE(RutubeBaseIE):
IE_NAME = 'rutube'
IE_DESC = 'Rutube videos'
_VALID_URL = r'https?://rutube\.ru/(?:video|(?:play/)?embed)/(?P<id>[\da-z]{32})'
_EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//rutube\.ru/embed/[\da-z]{32}.*?)\1']
_EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//rutube\.ru/(?:play/)?embed/[\da-z]{32}.*?)\1']
_TESTS = [{
'url': 'http://rutube.ru/video/3eac3b4561676c17df9132a9a1e62e3e/',

Loading…
Cancel
Save