mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[baidu] Use list comprehension
This commit is contained in:
parent
0311677258
commit
b7546397f0
1 changed files with 3 additions and 4 deletions
|
@ -48,10 +48,9 @@ def _real_extract(self, url):
|
||||||
episodes_detail = self._call_api(
|
episodes_detail = self._call_api(
|
||||||
'xqsingle', category, playlist_id, 'Download episodes JSON metadata')
|
'xqsingle', category, playlist_id, 'Download episodes JSON metadata')
|
||||||
|
|
||||||
entries = []
|
entries = [self.url_result(
|
||||||
for episode in episodes_detail['videos']:
|
episode['url'], video_title=episode['title']
|
||||||
entries.append(self.url_result(
|
) for episode in episodes_detail['videos']]
|
||||||
episode['url'], video_title=episode['title']))
|
|
||||||
|
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
entries, playlist_id, playlist_title, playlist_description)
|
entries, playlist_id, playlist_title, playlist_description)
|
||||||
|
|
Loading…
Reference in a new issue