improve coverage
This commit is contained in:
parent
da492e49f6
commit
f98274f0ec
5 changed files with 15 additions and 26 deletions
|
|
@ -51,19 +51,12 @@ def get_fixed_column_item(item, index):
|
|||
return item["fixedColumns"][index]["musicResponsiveListItemFixedColumnRenderer"]
|
||||
|
||||
|
||||
def get_browse_id(item, index):
|
||||
if "navigationEndpoint" not in item["text"]["runs"][index]:
|
||||
return None
|
||||
else:
|
||||
return nav(item["text"]["runs"][index], NAVIGATION_BROWSE_ID)
|
||||
|
||||
|
||||
def get_dot_separator_index(runs):
|
||||
index = len(runs)
|
||||
try:
|
||||
index = runs.index({"text": " • "})
|
||||
except ValueError:
|
||||
len(runs)
|
||||
index = len(runs)
|
||||
|
||||
return index
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue