get_album: fix for future YouTube update/beta program (#173)
reuse code from get_library_upload_album
This commit is contained in:
parent
641178d067
commit
e5b46cc79c
10 changed files with 134 additions and 101 deletions
|
|
@ -29,7 +29,8 @@ def get_item_text(item, index, run_index=0, none_if_absent=False):
|
|||
|
||||
|
||||
def get_flex_column_item(item, index):
|
||||
if 'text' not in item['flexColumns'][index]['musicResponsiveListItemFlexColumnRenderer'] or \
|
||||
if len(item['flexColumns']) <= index or \
|
||||
'text' not in item['flexColumns'][index]['musicResponsiveListItemFlexColumnRenderer'] or \
|
||||
'runs' not in item['flexColumns'][index]['musicResponsiveListItemFlexColumnRenderer']['text']:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue