Skip wing-it fallback tracks from wishlist during playlist sync

Wing-it tracks (ID prefix 'wing_it_') have no real metadata and should
never be added to wishlist when they fail to match on the media server.
The per-track check in the sync service covers all sync paths: regular
sync page, LB/Last.fm/Tidal/Deezer/Beatport discovery syncs, and
automation-triggered syncs.
This commit is contained in:
Broque Thomas 2026-04-20 10:52:20 -07:00
parent f5441c7992
commit 8c96e0e197

View file

@ -324,6 +324,12 @@ class PlaylistSyncService:
for match_result in unmatched_tracks:
spotify_track = match_result.spotify_track
# Skip wing-it fallback tracks — they have no real metadata
# and should never be added to wishlist
if str(spotify_track.id).startswith('wing_it_'):
logger.info(f"Skipping wishlist for wing-it track: {spotify_track.name}")
continue
# Check if we have original track data with full album objects
original_track_data = None
if hasattr(self, '_original_tracks_map') and self._original_tracks_map: