aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--youtube_dl/extractor/baidu.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/baidu.py b/youtube_dl/extractor/baidu.py
index d35116a7c..76b21e596 100644
--- a/youtube_dl/extractor/baidu.py
+++ b/youtube_dl/extractor/baidu.py
@@ -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)