diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-29 19:39:27 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-29 19:39:27 +0600 |
commit | 6ff4469528d642bd678df9b1fa83545a0942e333 (patch) | |
tree | 0d5df8fc5d5ab96cc1c977e8e5b0a0b42949afe7 | |
parent | 68835d687abe593fc3b0397364a3d40a17d1f71e (diff) |
[crunchyroll] Relax fmt regex
-rw-r--r-- | youtube_dl/extractor/crunchyroll.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'(<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: |