[tf1] fix wat id extraction(closes #9862)
authorRemita Amine <remitamine@gmail.com>
Wed, 22 Jun 2016 23:13:52 +0000 (00:13 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 22 Jun 2016 23:14:34 +0000 (00:14 +0100)
youtube_dl/extractor/tf1.py

index 6c848dc6fad39c72a474b3fd53fabb1079dfdd84..e595c4a69b3f03361abc05f6bca61adecb61cf36 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')