Don't be too clever (Fixes Python 3)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 26 Feb 2013 20:21:50 +0000 (21:21 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 26 Feb 2013 21:03:43 +0000 (22:03 +0100)
youtube_dl/InfoExtractors.py

index d52506389807008353e424341b25c7ef406d9a53..a94648dcf8dcdedca1e6e64c7a1cab1383848609 100755 (executable)
@@ -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