mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:20:23 +00:00
[crunchyroll] Add even more relaxed fmt fallback
This commit is contained in:
parent
6ff4469528
commit
8312b1a3d1
@ -314,7 +314,10 @@ def _real_extract(self, url):
|
|||||||
continue
|
continue
|
||||||
available_fmts.append(fmt)
|
available_fmts.append(fmt)
|
||||||
if not available_fmts:
|
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 = []
|
video_encode_ids = []
|
||||||
formats = []
|
formats = []
|
||||||
for fmt in available_fmts:
|
for fmt in available_fmts:
|
||||||
|
Loading…
Reference in New Issue
Block a user