aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-26 21:21:50 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-26 22:03:43 +0100
commit691db5ba02d3fccee605cea83ad25ba217f851a7 (patch)
tree192fb8ed96b3f14bc7e24dfa20b4f24899e67845 /youtube_dl
parentacb8752f8062649c8aab820c6604b93866de63af (diff)
Don't be too clever (Fixes Python 3)
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/InfoExtractors.py3
1 files changed, 1 insertions, 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