]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/crunchyroll.py
[crunchyroll] Relax fmt regex
[youtube-dl.git] / youtube_dl / extractor / crunchyroll.py
index 184ba689649ab62430e7ef9a2db057b437d12e7d..4a76642966772e76da7962851b699621d04d628b 100644 (file)
@@ -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'(<a[^>]+token="showmedia\.([0-9]{3,4})p"[^>]+>.*?</a>)', webpage):
+        for a, fmt in re.findall(r'(<a[^>]+token=["\']showmedia\.([0-9]{3,4})p["\'][^>]+>)', webpage):
             attrs = extract_attributes(a)
             href = attrs.get('href')
             if href and '/freetrial' in href: