]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[tf1] Fix a regular expression (closes #9656)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 1 Jun 2016 12:04:43 +0000 (20:04 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 1 Jun 2016 12:04:43 +0000 (20:04 +0800)
This is a Python bug fixed in 2.7.6 [1]

[1] https://github.com/rg3/youtube-dl/issues/9656#issuecomment-222968594

youtube_dl/extractor/tf1.py

index aff5121b9311ff404219fc8689ba3f29755a6370..6c848dc6fad39c72a474b3fd53fabb1079dfdd84 100644 (file)
@@ -48,6 +48,6 @@ class TF1IE(InfoExtractor):
         video_id = self._match_id(url)
         webpage = self._download_webpage(url, video_id)
         wat_id = self._html_search_regex(
-            r'(["\'])(?:https?:)?//www\.wat\.tv/embedframe/.*?(?P<id>\d{8})(?:.*?)?\1',
+            r'(["\'])(?:https?:)?//www\.wat\.tv/embedframe/.*?(?P<id>\d{8}).*?\1',
             webpage, 'wat id', group='id')
         return self.url_result('wat:%s' % wat_id, 'Wat')