From b158bb86934fb8863a697b6e65a1cbc5105d1741 Mon Sep 17 00:00:00 2001 From: t0mm0 Date: Sun, 4 Jan 2015 00:45:23 +0000 Subject: [PATCH] [tf1] simplify regex --- youtube_dl/extractor/tf1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _real_extract(self, url): 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')