From: Philipp Hagemeister Date: Wed, 28 Aug 2013 10:14:45 +0000 (+0200) Subject: Print playpath with --get-url (Fixes #1334) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=edde6c56ac20af57d7fd494810834125bbd3728d;p=youtube-dl Print playpath with --get-url (Fixes #1334) --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 3fc4ec378..d5f7c81eb 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -448,7 +448,8 @@ class YoutubeDL(object): if self.params.get('forceid', False): compat_print(info_dict['id']) if self.params.get('forceurl', False): - compat_print(info_dict['url']) + # For RTMP URLs, also include the playpath + compat_print(info_dict['url'] + info_dict.get('play_path', u'')) if self.params.get('forcethumbnail', False) and 'thumbnail' in info_dict: compat_print(info_dict['thumbnail']) if self.params.get('forcedescription', False) and 'description' in info_dict: