X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ftf1.py;h=025d0877cb928bb433aff9f6eff19a29d253e006;hb=80240b347e793672909bad21e7781d8b829c6539;hp=384b4c3f874d5f5464f1cf95eed636976e5cfe59;hpb=382e05fa5686ea58606f684f3032b91801ece8f3;p=youtube-dl diff --git a/youtube_dl/extractor/tf1.py b/youtube_dl/extractor/tf1.py index 384b4c3f8..025d0877c 100644 --- a/youtube_dl/extractor/tf1.py +++ b/youtube_dl/extractor/tf1.py @@ -1,8 +1,6 @@ # coding: utf-8 from __future__ import unicode_literals -import re - from .common import InfoExtractor @@ -24,10 +22,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 +38,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')