Browse Source

Don't be too clever (Fixes Python 3)

Philipp Hagemeister 12 years ago
parent
commit
691db5ba02
1 changed files with 1 additions and 2 deletions
  1. 1 2
      youtube_dl/InfoExtractors.py

+ 1 - 2
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