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.
This commit is contained in:
parent
d916b01fd6
commit
0b13a9d886
1 changed files with 3 additions and 1 deletions
|
|
@ -11804,10 +11804,12 @@ def _check_single_completion(db, single_data: dict, artist_name: str, test_mode:
|
||||||
else:
|
else:
|
||||||
# Single track - just check if the track exists
|
# Single track - just check if the track exists
|
||||||
try:
|
try:
|
||||||
|
active_server = config_manager.get_active_media_server()
|
||||||
db_track, confidence = db.check_track_exists(
|
db_track, confidence = db.check_track_exists(
|
||||||
title=single_name,
|
title=single_name,
|
||||||
artist=artist_name,
|
artist=artist_name,
|
||||||
confidence_threshold=0.7
|
confidence_threshold=0.7,
|
||||||
|
server_source=active_server
|
||||||
)
|
)
|
||||||
except Exception as db_error:
|
except Exception as db_error:
|
||||||
print(f"Database error for single '{single_name}': {db_error}")
|
print(f"Database error for single '{single_name}': {db_error}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue