1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-27 04:26:50 +01:00

[NhkRadio] fix error from flake8

This commit is contained in:
guredora 2021-04-05 18:01:07 +09:00
parent 7bb932b964
commit 2730e55b36

View File

@ -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,