diff options
author | rrooij <rrooij@users.noreply.github.com> | 2017-07-14 17:10:17 +0200 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2017-07-14 22:10:17 +0700 |
commit | f354d8480700c5e6f288bfce497a363b4c6f0859 (patch) | |
tree | 6a6e7aefc1835dcadd6fbc83c1d747fa6a52a51f /youtube_dl | |
parent | 15da37c7dc8cf14ba5ce880aa1805fceaa71fc44 (diff) |
[5tv] Add another video URL pattern (closes #13354)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/fivetv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/fivetv.py b/youtube_dl/extractor/fivetv.py index 15736c9fe..9f9863746 100644 --- a/youtube_dl/extractor/fivetv.py +++ b/youtube_dl/extractor/fivetv.py @@ -43,7 +43,7 @@ class FiveTVIE(InfoExtractor): 'info_dict': { 'id': 'glavnoe', 'ext': 'mp4', - 'title': 'Итоги недели с 8 по 14 июня 2015 года', + 'title': r're:^Итоги недели с \d+ по \d+ \w+ \d{4} года$', 'thumbnail': r're:^https?://.*\.jpg$', }, }, { @@ -70,7 +70,8 @@ class FiveTVIE(InfoExtractor): webpage = self._download_webpage(url, video_id) video_url = self._search_regex( - r'<a[^>]+?href="([^"]+)"[^>]+?class="videoplayer"', + [r'<div[^>]+?class="flowplayer[^>]+?data-href="([^"]+)"', + r'<a[^>]+?href="([^"]+)"[^>]+?class="videoplayer"'], webpage, 'video url') title = self._og_search_title(webpage, default=None) or self._search_regex( |