fix(musicseerr): support new Spotify embed JSON structure with 'tracks' key
Build and Push Docker Images / build (api) (push) Failing after 2m36s
Details
Build and Push Docker Images / build (nextgen) (push) Failing after 2m54s
Details
Build and Push Docker Images / build (web) (push) Failing after 3m47s
Details
Build and Push Docker Images / build (musicseerr) (push) Successful in 11m40s
Details
Build and Push Docker Images / build (worker) (push) Successful in 14m51s
Details
Build and Push Docker Images / deploy (push) Has been skipped
Details
Build and Push Docker Images / build (api) (push) Failing after 2m36s
Details
Build and Push Docker Images / build (nextgen) (push) Failing after 2m54s
Details
Build and Push Docker Images / build (web) (push) Failing after 3m47s
Details
Build and Push Docker Images / build (musicseerr) (push) Successful in 11m40s
Details
Build and Push Docker Images / build (worker) (push) Successful in 14m51s
Details
Build and Push Docker Images / deploy (push) Has been skipped
Details
This commit is contained in:
parent
07b89e4018
commit
d91a4abee4
|
|
@ -288,7 +288,7 @@ def scrape_spotify_playlist(url: str, proxy_url: str) -> list:
|
||||||
if next_data_match:
|
if next_data_match:
|
||||||
data = json.loads(next_data_match.group(1))
|
data = json.loads(next_data_match.group(1))
|
||||||
entity = data['props']['pageProps']['state']['data']['entity']
|
entity = data['props']['pageProps']['state']['data']['entity']
|
||||||
tracks = entity.get('trackList', [])
|
tracks = entity.get('tracks', entity.get('trackList', []))
|
||||||
track_queries = []
|
track_queries = []
|
||||||
for t in tracks:
|
for t in tracks:
|
||||||
title = t.get('title', '').strip()
|
title = t.get('title', '').strip()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue