From: t0mm0 Date: Sun, 4 Jan 2015 00:45:23 +0000 (+0000) Subject: [tf1] simplify regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b158bb86934fb8863a697b6e65a1cbc5105d1741;p=youtube-dl [tf1] simplify regex --- diff --git a/youtube_dl/extractor/tf1.py b/youtube_dl/extractor/tf1.py index 5c0fcef58..07cc81226 100644 --- a/youtube_dl/extractor/tf1.py +++ b/youtube_dl/extractor/tf1.py @@ -40,7 +40,7 @@ class TF1IE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) 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, 'Downloading embed player page') wat_id = self._search_regex(r'UVID=(.*?)&', embed_page, 'wat id')