Fix error when channel has empty description
This commit is contained in:
parent
2034b6bd25
commit
fe38aa214b
@ -251,8 +251,10 @@ def extract_info(polymer_json, tab):
|
|||||||
continue
|
continue
|
||||||
info['stats'].append(yt_data_extract.get_plain_text(stat))
|
info['stats'].append(yt_data_extract.get_plain_text(stat))
|
||||||
|
|
||||||
|
if 'description' in channel_metadata:
|
||||||
info['description'] = yt_data_extract.get_text(channel_metadata['description'])
|
info['description'] = yt_data_extract.get_text(channel_metadata['description'])
|
||||||
|
else:
|
||||||
|
info['description'] = ''
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError('Unknown or unsupported channel tab: ' + tab)
|
raise NotImplementedError('Unknown or unsupported channel tab: ' + tab)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user