From: Jaime Marquínez Ferrándiz Date: Thu, 5 Sep 2013 19:40:04 +0000 (+0200) Subject: [youtube] Playlists: extract the videos id from ['media$group']['yt$videoid'] (fixes... X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c215217e39ccc42c457220e29de7cf964be54ecf;p=youtube-dl [youtube] Playlists: extract the videos id from ['media$group']['yt$videoid'] (fixes #1374) 'media$player' is not defined for private videos. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 01265ca28..782cb1cfb 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -943,8 +943,11 @@ class YoutubePlaylistIE(InfoExtractor): for entry in response['feed']['entry']: index = entry['yt$position']['$t'] - if 'media$group' in entry and 'media$player' in entry['media$group']: - videos.append((index, entry['media$group']['media$player']['url'])) + if 'media$group' in entry and 'yt$videoid' in entry['media$group']: + videos.append(( + index, + 'https://www.youtube.com/watch?v=' + entry['media$group']['yt$videoid']['$t'] + )) videos = [v[1] for v in sorted(videos)]