Fix single track completion check not filtering by active server

Single track ownership check was calling check_track_exists without
server_source, matching against all servers instead of the active one.
Album and EP checks already passed server_source correctly — this was
the only missing spot. Affects all server types.
pull/315/head
Broque Thomas 2 months ago
parent d916b01fd6
commit 0b13a9d886

@ -11804,10 +11804,12 @@ def _check_single_completion(db, single_data: dict, artist_name: str, test_mode:
else:
# Single track - just check if the track exists
try:
active_server = config_manager.get_active_media_server()
db_track, confidence = db.check_track_exists(
title=single_name,
artist=artist_name,
confidence_threshold=0.7
confidence_threshold=0.7,
server_source=active_server
)
except Exception as db_error:
print(f"Database error for single '{single_name}': {db_error}")

Loading…
Cancel
Save