remove parentheses from title when comparing with ISRC search
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user