From 837de4d4755a241f448bb345269a7e5701937db6 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Feb 2026 17:23:49 -0300 Subject: [PATCH] Require full album tracklist before using --- votify/interface/song.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/votify/interface/song.py b/votify/interface/song.py index 0576530..b4507e1 100644 --- a/votify/interface/song.py +++ b/votify/interface/song.py @@ -35,7 +35,11 @@ class SpotifySongInterface(SpotifyAudioInterface): track_data = track_response["data"]["trackUnion"] if not album_data: - if track_data["albumOfTrack"].get("tracks"): + if ( + track_data["albumOfTrack"].get("tracks") + and len(track_data["albumOfTrack"]["tracks"]["items"]) + == track_data["albumOfTrack"]["tracks"]["totalCount"] + ): album_data, album_items = ( track_data["albumOfTrack"], track_data["albumOfTrack"]["tracks"]["items"],