]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[tf1] Improve wat id regex (Closes #8691)
authorSergey M․ <dstftw@gmail.com>
Sun, 28 Feb 2016 21:28:21 +0000 (03:28 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 28 Feb 2016 21:28:21 +0000 (03:28 +0600)
youtube_dl/extractor/tf1.py

index e1a64e284db99e3e749e09ab97f4fc8b8b039eb5..9ee84468488c61979f35b527dad0b617133f04b2 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')