aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-04-29 19:43:53 +0600
committerSergey M․ <dstftw@gmail.com>2016-04-29 19:43:53 +0600
commit8312b1a3d1dc07d80d33e31f9b2b6facf13fa744 (patch)
treea167b7917a2c5f74569fdaa3c47ead061bd74f0a /youtube_dl/extractor
parent6ff4469528d642bd678df9b1fa83545a0942e333 (diff)
[crunchyroll] Add even more relaxed fmt fallback
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/crunchyroll.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 4a7664296..58960b2f8 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -314,7 +314,10 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
continue
available_fmts.append(fmt)
if not available_fmts:
- available_fmts = re.findall(r'token="showmedia\.([0-9]{3,4})p"', webpage)
+ for p in (r'token=["\']showmedia\.([0-9]{3,4})p"', r'showmedia\.([0-9]{3,4})p'):
+ available_fmts = re.findall(p, webpage)
+ if available_fmts:
+ break
video_encode_ids = []
formats = []
for fmt in available_fmts: