From 691db5ba02d3fccee605cea83ad25ba217f851a7 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 26 Feb 2013 21:21:50 +0100 Subject: Don't be too clever (Fixes Python 3) --- youtube_dl/InfoExtractors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index d52506389..a94648dcf 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1741,8 +1741,7 @@ class YoutubePlaylistIE(InfoExtractor): break page_num += 1 - videos = map(operator.itemgetter(1), sorted(videos)) - + videos = [v[1] for v in sorted(videos)] total = len(videos) playliststart = self._downloader.params.get('playliststart', 1) - 1 -- cgit v1.2.3