diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-02-24 17:10:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 23:10:37 +0000 |
commit | 7a29cbbd5fd7363e7e8535ee1506b7052465d13f (patch) | |
tree | 24829873aece83c731131f21112b26501c915477 | |
parent | 2e8de097ad82da378e97005e8f1ff7e5aebca585 (diff) |
[ie/ntvru] Fix extraction (#9276)
Closes #8347
Authored by: bashonly, dirkf
Co-authored-by: dirkf <fieldhouse@gmx.net>
-rw-r--r-- | yt_dlp/extractor/ntvru.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/ntvru.py b/yt_dlp/extractor/ntvru.py index 91b7724eb..fe3965729 100644 --- a/yt_dlp/extractor/ntvru.py +++ b/yt_dlp/extractor/ntvru.py @@ -35,6 +35,7 @@ class NTVRuIE(InfoExtractor): 'duration': 172, 'view_count': int, }, + 'skip': '404 Not Found', }, { 'url': 'http://www.ntv.ru/peredacha/segodnya/m23700/o232416', 'md5': '82dbd49b38e3af1d00df16acbeab260c', @@ -78,7 +79,8 @@ class NTVRuIE(InfoExtractor): }] _VIDEO_ID_REGEXES = [ - r'<meta property="og:url" content="http://www\.ntv\.ru/video/(\d+)', + r'<meta property="og:url" content="https?://www\.ntv\.ru/video/(\d+)', + r'<meta property="og:video:(?:url|iframe)" content="https?://www\.ntv\.ru/embed/(\d+)', r'<video embed=[^>]+><id>(\d+)</id>', r'<video restriction[^>]+><key>(\d+)</key>', ] |