remove parentheses from title when comparing with ISRC search

This commit is contained in:
lexitronic
2025-08-17 04:22:15 -04:00
parent 236a19a8ef
commit 2adb28c2c7

View File

@@ -438,8 +438,8 @@ class DeeLogin:
dz_json = dz dz_json = dz
tn = (dz_json.get('track_position') or dz_json.get('track_number') or 0) tn = (dz_json.get('track_position') or dz_json.get('track_number') or 0)
title_match = max( title_match = max(
_sim(spo_title, dz_json.get('title', '')), _sim(_remove_parentheses(spo_title), _remove_parentheses(dz_json.get('title', ''))),
_sim(spo_title, dz_json.get('title_short', '')), _sim(_remove_parentheses(spo_title), _remove_parentheses(dz_json.get('title_short', '')))
) )
album_match = _sim(spo_album_title, (dz_json.get('album') or {}).get('title', '')) album_match = _sim(spo_album_title, (dz_json.get('album') or {}).get('title', ''))
t_isrc = (dz_json.get('isrc') or '').upper() t_isrc = (dz_json.get('isrc') or '').upper()