From d90ab56f120d41ab49c48cff42d7f24a58b35d81 Mon Sep 17 00:00:00 2001 From: Muratcan Simsek Date: Thu, 17 Dec 2015 08:59:01 +0200 Subject: [PATCH] Update funimation.py I think not having FUNimationID in the format code would be better for automation purposes, scripts and such. --- youtube_dl/extractor/funimation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/funimation.py b/youtube_dl/extractor/funimation.py index d1a95d87f..6ea1fc678 100644 --- a/youtube_dl/extractor/funimation.py +++ b/youtube_dl/extractor/funimation.py @@ -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,