aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/ertgr.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-11-17 10:40:03 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-11-17 11:40:17 +0530
commit9f14daf22b4080ae1531a772ee7574959af4e2fa (patch)
tree44e9d252cc11a8819f9092d31def30c1f9ed3137 /yt_dlp/extractor/ertgr.py
parent784320c98c2a7e84d72636bc25f6f54c86f5e481 (diff)
downloadhypervideo-pre-9f14daf22b4080ae1531a772ee7574959af4e2fa.tar.lz
hypervideo-pre-9f14daf22b4080ae1531a772ee7574959af4e2fa.tar.xz
hypervideo-pre-9f14daf22b4080ae1531a772ee7574959af4e2fa.zip
[extractor] Deprecate `_sort_formats`
Diffstat (limited to 'yt_dlp/extractor/ertgr.py')
-rw-r--r--yt_dlp/extractor/ertgr.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yt_dlp/extractor/ertgr.py b/yt_dlp/extractor/ertgr.py
index eb52ad031..9ecdf5d3b 100644
--- a/yt_dlp/extractor/ertgr.py
+++ b/yt_dlp/extractor/ertgr.py
@@ -73,7 +73,7 @@ class ERTFlixCodenameIE(ERTFlixBaseIE):
},
]
- def _extract_formats_and_subs(self, video_id, allow_none=True):
+ def _extract_formats_and_subs(self, video_id):
media_info = self._call_api(video_id, codename=video_id)
formats, subs = [], {}
for media_file in try_get(media_info, lambda x: x['MediaFiles'], list) or []:
@@ -97,8 +97,6 @@ class ERTFlixCodenameIE(ERTFlixBaseIE):
formats.extend(formats_)
self._merge_subtitles(subs_, target=subs)
- if formats or not allow_none:
- self._sort_formats(formats)
return formats, subs
def _real_extract(self, url):
@@ -292,7 +290,6 @@ class ERTWebtvEmbedIE(InfoExtractor):
formats, subs = self._extract_m3u8_formats_and_subtitles(
f'https://mediastream.ert.gr/vodedge/_definst_/mp4:dvrorigin/{video_id}/playlist.m3u8',
video_id, 'mp4')
- self._sort_formats(formats)
thumbnail_id = parse_qs(url).get('bgimg', [None])[0]
if thumbnail_id and not thumbnail_id.startswith('http'):
thumbnail_id = f'https://program.ert.gr{thumbnail_id}'