From: Sergey M․ Date: Fri, 29 Apr 2016 13:39:27 +0000 (+0600) Subject: [crunchyroll] Relax fmt regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6ff4469528d642bd678df9b1fa83545a0942e333;p=youtube-dl [crunchyroll] Relax fmt regex --- diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py index 184ba6896..4a7664296 100644 --- a/youtube_dl/extractor/crunchyroll.py +++ b/youtube_dl/extractor/crunchyroll.py @@ -307,7 +307,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text 'video_uploader', fatal=False) available_fmts = [] - for a, fmt in re.findall(r'(]+token="showmedia\.([0-9]{3,4})p"[^>]+>.*?)', webpage): + for a, fmt in re.findall(r'(]+token=["\']showmedia\.([0-9]{3,4})p["\'][^>]+>)', webpage): attrs = extract_attributes(a) href = attrs.get('href') if href and '/freetrial' in href: