Compare commits

..

No commits in common. "4bb0bc30d7beae0b19ff66071f28fd5f25fcc3fe" and "b0c3420421477eb0e1fee045cab8f5eda8e698e2" have entirely different histories.

View File

@ -67,13 +67,14 @@ class LBRYBaseIE(InfoExtractor):
'release_timestamp': ('value', 'release_time', {int_or_none}),
'tags': ('value', 'tags', ..., {lambda x: x or None}),
'duration': ('value', stream_type, 'duration', {int_or_none}),
'channel': ('signing_channel', 'value', 'title', {str}),
'channel_id': ('signing_channel', 'claim_id', {str}),
'uploader_id': ('signing_channel', 'name', {str}),
})
if info.get('uploader_id') and info.get('channel_id'):
info['channel_url'] = self._permanent_url(url, info['uploader_id'], info['channel_id'])
info['uploader_id'] = traverse_obj(stream, ('signing_channel', 'normalized_name', {str}))
channel_name = traverse_obj(stream, ('signing_channel', (('value', 'title'), 'name'), {str}), get_all=False)
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