[crunchyroll] Relax fmt regex
authorSergey M․ <dstftw@gmail.com>
Fri, 29 Apr 2016 13:39:27 +0000 (19:39 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 29 Apr 2016 13:39:27 +0000 (19:39 +0600)
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: