get_home: fix song artist parsing (#798)
* get_home: fix song artist parsing extra text is now excluded from `artists`: - `get_home`/`get_song_related`: play counts in certain track carousels - `get_home`: "Song" specifiers for audio tracks `get_explore` song charts are also no longer missing `album` data * skip type specifiers in parse_song_runs without comparing text
This commit is contained in:
parent
0b7daa4959
commit
e738b2a70f
12 changed files with 118 additions and 68 deletions
|
|
@ -16,7 +16,10 @@ class TestExplore:
|
|||
assert all(item["audioPlaylistId"].startswith("OLA") for item in explore["new_releases"])
|
||||
|
||||
# check top_songs if present
|
||||
assert all(item["videoId"] for item in explore.get("top_songs", {"items": []})["items"])
|
||||
assert all(
|
||||
item["videoId"] and (item.get("views") or item.get("album"))
|
||||
for item in explore.get("top_songs", {"items": []})["items"]
|
||||
)
|
||||
|
||||
assert all(
|
||||
item["videoId"] and all(artist["id"] for artist in item["artists"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue