mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 09:02:57 +01:00
prefer 'code' to 'uri' if present
This commit is contained in:
parent
50efb383f0
commit
1bd838608f
@ -134,9 +134,13 @@ def _talk_info(self, url, video_name):
|
|||||||
|
|
||||||
if talk_info.get('external') is not None:
|
if talk_info.get('external') is not None:
|
||||||
self.to_screen('Found video from %s' % talk_info['external']['service'])
|
self.to_screen('Found video from %s' % talk_info['external']['service'])
|
||||||
|
if 'code' in talk_info['external']:
|
||||||
|
ext_url = talk_info['external']['code']
|
||||||
|
else:
|
||||||
|
ext_url = talk_info['external']['uri']
|
||||||
return {
|
return {
|
||||||
'_type': 'url',
|
'_type': 'url',
|
||||||
'url': talk_info['external']['uri'],
|
'url': ext_url,
|
||||||
}
|
}
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
|
Loading…
Reference in New Issue
Block a user