Update funimation.py
I think not having FUNimationID in the format code would be better for automation purposes, scripts and such.
This commit is contained in:
parent
323f82a7e0
commit
d90ab56f12
@ -153,7 +153,7 @@ class FunimationIE(InfoExtractor):
|
|||||||
if determine_ext(format_url) == 'm3u8':
|
if determine_ext(format_url) == 'm3u8':
|
||||||
m3u8_formats = self._extract_m3u8_formats(
|
m3u8_formats = self._extract_m3u8_formats(
|
||||||
format_url + auth_token, display_id, 'mp4', entry_protocol='m3u8_native',
|
format_url + auth_token, display_id, 'mp4', entry_protocol='m3u8_native',
|
||||||
preference=preference, m3u8_id='%s-hls' % funimation_id, fatal=False)
|
preference=preference, m3u8_id='hls', fatal=False)
|
||||||
if m3u8_formats:
|
if m3u8_formats:
|
||||||
formats.extend(m3u8_formats)
|
formats.extend(m3u8_formats)
|
||||||
else:
|
else:
|
||||||
@ -161,7 +161,7 @@ class FunimationIE(InfoExtractor):
|
|||||||
r'-(\d+)[Kk]', format_url, 'tbr', default=None))
|
r'-(\d+)[Kk]', format_url, 'tbr', default=None))
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': format_url + auth_token,
|
'url': format_url + auth_token,
|
||||||
'format_id': '%s-http-%dp' % (funimation_id, height),
|
'format_id': 'http-%dp' % height,
|
||||||
'height': height,
|
'height': height,
|
||||||
'tbr': tbr,
|
'tbr': tbr,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user