extract_item_info: Don't extract author, author_id, etc. for channel items
Philosophically, a channel doesn't create itself.
This commit is contained in:
parent
3200d66d88
commit
f706689a56
@ -218,6 +218,7 @@ def extract_item_info(item, additional_info={}):
|
||||
info['type'] = 'unsupported'
|
||||
|
||||
info['title'] = extract_str(item.get('title'))
|
||||
if primary_type != 'channel':
|
||||
info['author'] = extract_str(multi_get(item, 'longBylineText', 'shortBylineText', 'ownerText'))
|
||||
info['author_id'] = extract_str(multi_deep_get(item,
|
||||
['longBylineText', 'runs', 0, 'navigationEndpoint', 'browseEndpoint', 'browseId'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user