Added exact artist matching

This commit is contained in:
Connor Johnstone
2026-03-05 11:31:53 -05:00
parent 70aedb49f2
commit 2ffdce4fbc
8 changed files with 152 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Fuzzy search artists in playlists.db and show their similar artists."""
"""Fuzzy search artists in drift.db and show their similar artists."""
import curses
import os
@@ -9,9 +9,9 @@ from pathlib import Path
def find_db():
"""Find playlists.db in XDG data dir."""
"""Find drift.db in XDG data dir."""
data_home = os.environ.get("XDG_DATA_HOME", Path.home() / ".local" / "share")
p = Path(data_home) / "playlists" / "playlists.db"
p = Path(data_home) / "drift" / "drift.db"
if p.exists():
return str(p)
print(f"Could not find {p}", file=sys.stderr)