mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-25 04:40:09 +09:00
more youtube-dl coding convention fixes
This commit is contained in:
parent
b98ae0e5e9
commit
b7c149a5c8
@ -42,19 +42,22 @@ class DigitalConcertHallIE(InfoExtractor):
|
||||
|
||||
# this returns JSON containing the urls of the playlist
|
||||
playlist_dict = self._download_json(
|
||||
'https://www.digitalconcerthall.com/json_services/get_stream_urls?id=' + video_id + "&language=" + language, video_id).get('urls')
|
||||
'https://www.digitalconcerthall.com/json_services/get_stream_urls?id='
|
||||
+ video_id + "&language=" + language, video_id).get('urls')
|
||||
|
||||
entries = []
|
||||
for key in playlist_dict:
|
||||
self.debug_out("key: " + key)
|
||||
m3u8_url = playlist_dict.get(key)[0].get('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)
|
||||
# the div with id=key contains the video title
|
||||
vid_info_div = clean_html(get_element_by_id(key, webpage))
|
||||
self.debug_out("vid_info_div:\n" + vid_info_div)
|
||||
title = re.sub(r'\s+', ' ', vid_info_div)
|
||||
title = re.sub(r'\s+', ' ', vid_info_div) \
|
||||
or self._og_search_title(webpage)
|
||||
self.to_screen("title: " + title)
|
||||
entries.append({
|
||||
'id': key,
|
||||
|
Loading…
Reference in New Issue
Block a user