aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/rutube.py
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2022-09-24 17:42:32 +1200
committercoletdjnz <coletdjnz@protonmail.com>2022-09-24 17:44:26 +1200
commitd42763a443107fa6a9d69c110f92c98857ca2406 (patch)
treec36fe5bc0903015e05e845bb344f3ae3da9fcb02 /yt_dlp/extractor/rutube.py
parent3c757d5ed2527b17881eb65c67ddbe0d1335771f (diff)
downloadhypervideo-pre-d42763a443107fa6a9d69c110f92c98857ca2406.tar.lz
hypervideo-pre-d42763a443107fa6a9d69c110f92c98857ca2406.tar.xz
hypervideo-pre-d42763a443107fa6a9d69c110f92c98857ca2406.zip
[extractor/rutube] Fix `_EMBED_REGEX`
Closes https://github.com/yt-dlp/yt-dlp/issues/4797 Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/extractor/rutube.py')
-rw-r--r--yt_dlp/extractor/rutube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/rutube.py b/yt_dlp/extractor/rutube.py
index 380c5e14e..34af0d594 100644
--- a/yt_dlp/extractor/rutube.py
+++ b/yt_dlp/extractor/rutube.py
@@ -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/',