aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/nhk.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/nhk.py')
-rw-r--r--yt_dlp/extractor/nhk.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yt_dlp/extractor/nhk.py b/yt_dlp/extractor/nhk.py
index 60d76d1b1..59702b247 100644
--- a/yt_dlp/extractor/nhk.py
+++ b/yt_dlp/extractor/nhk.py
@@ -78,7 +78,6 @@ class NhkBaseIE(InfoExtractor):
m3u8_id='hls', fatal=False)
for f in info['formats']:
f['language'] = lang
- self._sort_formats(info['formats'])
else:
info.update({
'_type': 'url_transparent',
@@ -240,7 +239,6 @@ class NhkForSchoolBangumiIE(InfoExtractor):
formats = self._extract_m3u8_formats(
f'https://nhks-vh.akamaihd.net/i/das/{video_id[0:8]}/{video_id}_V_000.f4v/master.m3u8',
video_id, ext='mp4', m3u8_id='hls')
- self._sort_formats(formats)
duration = parse_duration(base_values.get('r_duration'))
@@ -321,8 +319,7 @@ class NhkForSchoolProgramListIE(InfoExtractor):
webpage = self._download_webpage(f'https://www.nhk.or.jp/school/{program_id}/', program_id)
- title = (self._og_search_title(webpage)
- or self._html_extract_title(webpage)
+ title = (self._generic_title('', webpage)
or self._html_search_regex(r'<h3>([^<]+?)とは?\s*</h3>', webpage, 'title', fatal=False))
title = re.sub(r'\s*\|\s*NHK\s+for\s+School\s*$', '', title) if title else None
description = self._html_search_regex(