aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-06-01 20:04:43 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-06-01 20:04:43 +0800
commitdde1ce7c061cae123264eb555f1da98956923301 (patch)
tree109c987e9af4ef4bf97c32bdf684b8c199bb5090 /youtube_dl
parent811586ebcfb04878ad3347706bfee020d0e3652b (diff)
[tf1] Fix a regular expression (closes #9656)
This is a Python bug fixed in 2.7.6 [1] [1] https://github.com/rg3/youtube-dl/issues/9656#issuecomment-222968594
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/tf1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tf1.py b/youtube_dl/extractor/tf1.py
index aff5121b9..6c848dc6f 100644
--- a/youtube_dl/extractor/tf1.py
+++ b/youtube_dl/extractor/tf1.py
@@ -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')