From 2c934b256357c550837501f49497f88df467359a Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sat, 26 Sep 2015 22:45:15 -0500 Subject: [PATCH] YouTube: Output URLs in "url" field, not IDs "-j --flat-playlist" was outputting the video ID in the "url" field. --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 8471cbe8c..de77441ba 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1579,7 +1579,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor): if m.group('title').strip()] # Ignore links without titles, which also prevents duplicates for video in new_videos: - yield self.url_result(video['id'], 'Youtube', video_id=video['id'], video_title=video['title']) + yield self.url_result('https://youtu.be/%s' % video['id'], 'Youtube', video_id=video['id'], video_title=video['title']) # Find link to load more videos mobj = re.search(r'data-uix-load-more-href="/?(?P[^"]+)"', more_widget_html)