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:
Muratcan Simsek 2015-12-17 08:59:01 +02:00
parent 323f82a7e0
commit d90ab56f12

View File

@ -153,7 +153,7 @@ class FunimationIE(InfoExtractor):
if determine_ext(format_url) == 'm3u8':
m3u8_formats = self._extract_m3u8_formats(
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:
formats.extend(m3u8_formats)
else:
@ -161,7 +161,7 @@ class FunimationIE(InfoExtractor):
r'-(\d+)[Kk]', format_url, 'tbr', default=None))
formats.append({
'url': format_url + auth_token,
'format_id': '%s-http-%dp' % (funimation_id, height),
'format_id': 'http-%dp' % height,
'height': height,
'tbr': tbr,
'preference': preference,