From 2730e55b36d299e17beacc4aaa8fa9441932c8aa Mon Sep 17 00:00:00 2001 From: guredora Date: Mon, 5 Apr 2021 18:01:07 +0900 Subject: [PATCH] [NhkRadio] fix error from flake8 --- youtube_dl/extractor/nhkRadio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/nhkRadio.py b/youtube_dl/extractor/nhkRadio.py index 3cc42b163..22951713c 100644 --- a/youtube_dl/extractor/nhkRadio.py +++ b/youtube_dl/extractor/nhkRadio.py @@ -26,7 +26,7 @@ class NhkRadioBase(InfoExtractor): def _extract_program(self, info, program_corner_id): id = program_corner_id + "_" + info.get("headline_id") file = info.get("file_list")[0] - formats = self._extract_m3u8_formats(file.get("file_name"), id, "m4a", entry_protocol="m3u8_native", m3u8_id="hls") + formats = self._extract_m3u8_formats(file.get("file_name", None), id, "m4a", entry_protocol="m3u8_native", m3u8_id="hls") self._sort_formats(formats) return { "id": id,