mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-18 05:52:21 +09:00
Print playpath with --get-url (Fixes #1334)
This commit is contained in:
parent
1301a0dd42
commit
6cdf85d073
@ -448,6 +448,9 @@ class YoutubeDL(object):
|
|||||||
if self.params.get('forceid', False):
|
if self.params.get('forceid', False):
|
||||||
compat_print(info_dict['id'])
|
compat_print(info_dict['id'])
|
||||||
if self.params.get('forceurl', False):
|
if self.params.get('forceurl', False):
|
||||||
|
if info_dict['play_path']:
|
||||||
|
compat_print(info_dict['url'] + info_dict['play_path'])
|
||||||
|
else:
|
||||||
compat_print(info_dict['url'])
|
compat_print(info_dict['url'])
|
||||||
if self.params.get('forcethumbnail', False) and 'thumbnail' in info_dict:
|
if self.params.get('forcethumbnail', False) and 'thumbnail' in info_dict:
|
||||||
compat_print(info_dict['thumbnail'])
|
compat_print(info_dict['thumbnail'])
|
||||||
|
Loading…
Reference in New Issue
Block a user