track_downloads stores local Windows paths but tracks table stores server-side paths (Plex/Jellyfin). Both the track_id lookup (NULL due to failed auto-link at insert time) and exact file_path fallback were failing. Added filename-suffix LIKE matching as a final fallback in get_track_source_info, plus a back-link so the track_id gets written back for fast future lookups. Also improved the auto-link in record_track_download to use the same suffix matching when exact path fails. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| music_database.py | ||