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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/nhk.py b/yt_dlp/extractor/nhk.py
index 60d76d1b1..517660ef1 100644
--- a/yt_dlp/extractor/nhk.py
+++ b/yt_dlp/extractor/nhk.py
@@ -321,8 +321,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(