From 2f7d775980932a1c97d0a7e861c1f8b2197d488f Mon Sep 17 00:00:00 2001 From: garret Date: Mon, 8 Jan 2024 17:39:20 +0000 Subject: [PATCH] make station info non-fatal (optional) R1 from Kanazawa is available as a temporary service due to the earthquake on noto peninsula it only has the bare minimum to be playable - no station info, no nothing, just the stream url and the area name it may be of interest to record, so this makes it so that the metadata is non-fatal. everything past that is also non-fatal, so it all degrades reasonably gracefully --- yt_dlp/extractor/nhk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/nhk.py b/yt_dlp/extractor/nhk.py index cc3c791741a..4b3d185a325 100644 --- a/yt_dlp/extractor/nhk.py +++ b/yt_dlp/extractor/nhk.py @@ -665,7 +665,7 @@ def _real_extract(self, url): noa_info = self._download_json( f'https:{config.find(".//url_program_noa").text}'.format(area=data.find('areakey').text), - station, note=f'Downloading {area} station metadata') + station, note=f'Downloading {area} station metadata', fatal=False) present_info = traverse_obj(noa_info, ('nowonair_list', self._NOA_STATION_IDS.get(station), 'present')) return {