mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:11:25 +01:00
Compare commits
2 Commits
b0c3420421
...
4bb0bc30d7
Author | SHA1 | Date | |
---|---|---|---|
|
4bb0bc30d7 | ||
|
2fcf0e10b2 |
|
@ -67,14 +67,13 @@ class LBRYBaseIE(InfoExtractor):
|
||||||
'release_timestamp': ('value', 'release_time', {int_or_none}),
|
'release_timestamp': ('value', 'release_time', {int_or_none}),
|
||||||
'tags': ('value', 'tags', ..., {lambda x: x or None}),
|
'tags': ('value', 'tags', ..., {lambda x: x or None}),
|
||||||
'duration': ('value', stream_type, 'duration', {int_or_none}),
|
'duration': ('value', stream_type, 'duration', {int_or_none}),
|
||||||
|
'channel': ('signing_channel', 'value', 'title', {str}),
|
||||||
'channel_id': ('signing_channel', 'claim_id', {str}),
|
'channel_id': ('signing_channel', 'claim_id', {str}),
|
||||||
|
'uploader_id': ('signing_channel', 'name', {str}),
|
||||||
})
|
})
|
||||||
|
|
||||||
info['uploader_id'] = traverse_obj(stream, ('signing_channel', 'normalized_name', {str}))
|
if info.get('uploader_id') and info.get('channel_id'):
|
||||||
channel_name = traverse_obj(stream, ('signing_channel', (('value', 'title'), 'name'), {str}), get_all=False)
|
info['channel_url'] = self._permanent_url(url, info['uploader_id'], info['channel_id'])
|
||||||
info['channel'] = channel_name
|
|
||||||
if channel_name and info.get('channel_id'):
|
|
||||||
info['channel_url'] = self._permanent_url(url, channel_name, info['channel_id'])
|
|
||||||
|
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user