Skip to content

Commit

Permalink
[ie/ntvru] Fix extraction (#9276)
Browse files Browse the repository at this point in the history
Closes #8347
Authored by: bashonly, dirkf

Co-authored-by: dirkf <fieldhouse@gmx.net>
  • Loading branch information
bashonly and dirkf committed Feb 24, 2024
1 parent 2e8de09 commit 7a29cbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt_dlp/extractor/ntvru.py
Expand Up @@ -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',
Expand Down Expand Up @@ -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>',
]
Expand Down

0 comments on commit 7a29cbb

Please sign in to comment.