1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-09 13:22:51 +08:00

[foxnews:article] Fix video ID extraction

Fix #15810
This commit is contained in:
Urgau 2018-06-12 17:23:34 +02:00 committed by GitHub
parent 9aca7fe6a3
commit 828043d57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ class FoxNewsArticleIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
video_id = self._html_search_regex(
r'data-video-id=([\'"])(?P<id>[^\'"]+)\1',
(r'data-video-id=([\'"])(?P<id>[^\'"]+)\1', r'https?.*foxnews.*video_id=(?P<id>[\d]+)'),
webpage, 'video ID', group='id')
return self.url_result(
'http://video.foxnews.com/v/' + video_id,