From: Jaime Marquínez Ferrándiz Date: Fri, 2 Jan 2015 20:17:10 +0000 (+0100) Subject: [crunchyroll] Fix format extraction X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a221f22969843866ad85fd5cdf98160c79d99e9f;p=youtube-dl [crunchyroll] Fix format extraction Reported in https://github.com/rg3/youtube-dl/issues/2782#issuecomment-68556780 --- diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py index 354046a9e..1680f532f 100644 --- a/youtube_dl/extractor/crunchyroll.py +++ b/youtube_dl/extractor/crunchyroll.py @@ -228,7 +228,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text video_thumbnail = self._search_regex(r'([^<]+)', playerdata, 'thumbnail', fatal=False) formats = [] - for fmt in re.findall(r'\?p([0-9]{3,4})=1', webpage): + for fmt in re.findall(r'showmedia\.([0-9]{3,4})p', webpage): stream_quality, stream_format = self._FORMAT_IDS[fmt] video_format = fmt + 'p' streamdata_req = compat_urllib_request.Request('http://www.crunchyroll.com/xml/')