mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[tf1] simplify regex
This commit is contained in:
parent
2bf098eda4
commit
b158bb8693
|
@ -40,7 +40,7 @@ class TF1IE(InfoExtractor):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
embed_url = self._html_search_regex(
|
embed_url = self._html_search_regex(
|
||||||
r'["\'](http(?:s)?://www.wat.tv/embedframe/.*?)["\']', webpage, 'embed url')
|
r'["\'](https?://www.wat.tv/embedframe/.*?)["\']', webpage, 'embed url')
|
||||||
embed_page = self._download_webpage(embed_url, video_id,
|
embed_page = self._download_webpage(embed_url, video_id,
|
||||||
'Downloading embed player page')
|
'Downloading embed player page')
|
||||||
wat_id = self._search_regex(r'UVID=(.*?)&', embed_page, 'wat id')
|
wat_id = self._search_regex(r'UVID=(.*?)&', embed_page, 'wat id')
|
||||||
|
|
Loading…
Reference in a new issue