mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-21 12:34:08 +00:00
[baidu] Use list comprehension
This commit is contained in:
parent
0311677258
commit
b7546397f0
@ -48,10 +48,9 @@ class BaiduVideoIE(InfoExtractor):
|
||||
episodes_detail = self._call_api(
|
||||
'xqsingle', category, playlist_id, 'Download episodes JSON metadata')
|
||||
|
||||
entries = []
|
||||
for episode in episodes_detail['videos']:
|
||||
entries.append(self.url_result(
|
||||
episode['url'], video_title=episode['title']))
|
||||
entries = [self.url_result(
|
||||
episode['url'], video_title=episode['title']
|
||||
) for episode in episodes_detail['videos']]
|
||||
|
||||
return self.playlist_result(
|
||||
entries, playlist_id, playlist_title, playlist_description)
|
||||
|
Loading…
Reference in New Issue
Block a user