]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/extractor/tf1.py
[tf1] simplify regex
[youtube-dl] / youtube_dl / extractor / tf1.py
index 384b4c3f874d5f5464f1cf95eed636976e5cfe59..07cc8122646a1cd7509252ef8dfaee7672159c30 100644 (file)
@@ -24,10 +24,11 @@ class TF1IE(InfoExtractor):
     }, {
         'url': 'http://www.tfou.fr/chuggington/videos/le-grand-mysterioso-chuggington-7085291-739.html',
         'info_dict': {
-            'id': '7085291',
+            'id': '12043945',
             'ext': 'mp4',
             'title': 'Le grand Mystérioso - Chuggington',
-            'description': 'Emery rêve qu\'un article lui soit consacré dans le journal.',
+            'description': 'Le grand Mystérioso - Emery rêve qu\'un article lui soit consacré dans le journal.',
+            'upload_date': '20150103',
         },
         'params': {
             # Sometimes wat serves the whole file with the --test option
@@ -39,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')