1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 23:17:14 +08:00

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

This commit is contained in:
Pierre Rudloff 2013-08-28 11:58:36 +02:00
parent 1301a0dd42
commit 6cdf85d073

View File

@ -448,7 +448,10 @@ 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'])
if info_dict['play_path']:
compat_print(info_dict['url'] + info_dict['play_path'])
else:
compat_print(info_dict['url'])
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: