mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-25 12:50:10 +09:00
youtube-dl coding convention fixes
This commit is contained in:
parent
bedaa1c962
commit
b98ae0e5e9
@ -42,12 +42,12 @@ class DigitalConcertHallIE(InfoExtractor):
|
|||||||
|
|
||||||
# this returns JSON containing the urls of the playlist
|
# this returns JSON containing the urls of the playlist
|
||||||
playlist_dict = self._download_json(
|
playlist_dict = self._download_json(
|
||||||
'https://www.digitalconcerthall.com/json_services/get_stream_urls?id=' + video_id + "&language=" + language, video_id)['urls']
|
'https://www.digitalconcerthall.com/json_services/get_stream_urls?id=' + video_id + "&language=" + language, video_id).get('urls')
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for key in playlist_dict:
|
for key in playlist_dict:
|
||||||
self.debug_out("key: " + key)
|
self.debug_out("key: " + key)
|
||||||
m3u8_url = playlist_dict[key][0]['url']
|
m3u8_url = playlist_dict.get(key)[0].get('url')
|
||||||
self.debug_out("key url: " + m3u8_url)
|
self.debug_out("key url: " + m3u8_url)
|
||||||
formats = self._extract_m3u8_formats(m3u8_url, key, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
|
formats = self._extract_m3u8_formats(m3u8_url, key, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
|
||||||
self.debug_out(formats)
|
self.debug_out(formats)
|
||||||
|
Loading…
Reference in New Issue
Block a user