diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-13 20:28:16 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-13 20:28:16 +0600 |
commit | 8f02ad4f12549865a2a4436328075f4b20b906ef (patch) | |
tree | 86ced0b7cf66ebfa599ddf2a6386f22d99fe12de /youtube_dl/extractor/youtube.py | |
parent | 51f1244600beb8c3182dc0df756f61cbcfb6c13c (diff) |
[youtube] Simplify
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index dc9e15e98..52909b0da 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1397,20 +1397,18 @@ class YoutubeChannelIE(InfoExtractor): if autogenerated: # The videos are contained in a single page # the ajax pages can't be used, they are empty - videos = self.extract_videos_from_page(channel_page) entries = [ self.url_result( video_id, 'Youtube', video_id=video_id, video_title=video_title) - for video_id, video_title in videos] + for video_id, video_title in self.extract_videos_from_page(channel_page)] return self.playlist_result(entries, channel_id) def _entries(): more_widget_html = content_html = channel_page for pagenum in itertools.count(1): - ids_in_page = self.extract_videos_from_page(content_html) - for video_id, video_title in ids_in_page: + for video_id, video_title in self.extract_videos_from_page(content_html): yield self.url_result( video_id, 'Youtube', video_id=video_id, video_title=video_title) |