]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Print playpath with --get-url (Fixes #1334)
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 28 Aug 2013 10:14:45 +0000 (12:14 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 28 Aug 2013 10:14:45 +0000 (12:14 +0200)
youtube_dl/YoutubeDL.py

index 3fc4ec378d2334f35a74949e21cfde592a2e64c7..d5f7c81eb4189ae6eb975abaaef860f68910b4ff 100644 (file)
@@ -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: