From 5eeb828eb0472505df3ffba8f21edcd73e6a2cb2 Mon Sep 17 00:00:00 2001 From: evopls <63051451+evopls@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:19:30 +0200 Subject: [PATCH] removed audio_features request (deprecated) When requesting audio_features the watcher doesn't run at all since the feature was removed from the Spotify API entirely. Removing the request makes it run again just fine, it seems the feature was only used to request ``"id"`` specifically. See: https://developer.spotify.com/documentation/web-api/reference/get-audio-features --- aw_watcher_spotify/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aw_watcher_spotify/main.py b/aw_watcher_spotify/main.py index bb4c209..483dd85 100644 --- a/aw_watcher_spotify/main.py +++ b/aw_watcher_spotify/main.py @@ -37,7 +37,7 @@ def data_from_track(track: dict, sp) -> dict: song_name = track["item"]["name"] # local files do not have IDs data = ( - (sp.audio_features(track["item"]["id"])[0] or {}) if track["item"]["id"] else {} + ({}) if track["item"]["id"] else{} ) data["title"] = song_name data["uri"] = track["item"]["uri"]