0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

Print playpath with --get-url (Fixes #1334)

This commit is contained in:
Philipp Hagemeister 2013-08-28 12:14:45 +02:00
parent ae3531adf9
commit edde6c56ac

View file

@ -448,7 +448,8 @@ def process_info(self, info_dict):
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: