projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dae563
)
[tf1] Improve wat id regex (Closes #8691)
author
Sergey M․
<dstftw@gmail.com>
Sun, 28 Feb 2016 21:28:21 +0000
(
03:28
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 28 Feb 2016 21:28:21 +0000
(
03:28
+0600)
youtube_dl/extractor/tf1.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tf1.py
b/youtube_dl/extractor/tf1.py
index e1a64e284db99e3e749e09ab97f4fc8b8b039eb5..9ee84468488c61979f35b527dad0b617133f04b2 100644
(file)
--- 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')