projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68835d6
)
[crunchyroll] Relax fmt regex
author
Sergey M․
<dstftw@gmail.com>
Fri, 29 Apr 2016 13:39:27 +0000
(19:39 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 29 Apr 2016 13:39:27 +0000
(19:39 +0600)
youtube_dl/extractor/crunchyroll.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/crunchyroll.py
b/youtube_dl/extractor/crunchyroll.py
index 184ba689649ab62430e7ef9a2db057b437d12e7d..4a76642966772e76da7962851b699621d04d628b 100644
(file)
--- 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: