En del opdateringer
This commit is contained in:
@@ -20,7 +20,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
# AcoustID API nøgle — kan overskrives i Indstillinger → Afspilning
|
||||
# Registrér din egen på https://acoustid.org/new-application
|
||||
ACOUSTID_API_KEY = "71W9SJdajAI"
|
||||
ACOUSTID_API_KEY = "6fd9DGNDqG"
|
||||
ACOUSTID_API_URL = "https://api.acoustid.org/v2/lookup"
|
||||
|
||||
# Pause mellem API-kald — rolig baggrundskørsel
|
||||
@@ -154,7 +154,8 @@ def run_acoustid_scan(db_path: str, api_key: str = "", on_progress=None, stop_ev
|
||||
logger.info("AcoustID: stoppet af bruger")
|
||||
break
|
||||
|
||||
conn = sqlite3.connect(db_path)
|
||||
conn = sqlite3.connect(db_path, timeout=10)
|
||||
conn.execute("PRAGMA journal_mode=WAL")
|
||||
conn.row_factory = sqlite3.Row
|
||||
|
||||
rows = conn.execute("""
|
||||
@@ -181,7 +182,8 @@ def run_acoustid_scan(db_path: str, api_key: str = "", on_progress=None, stop_ev
|
||||
found = 0
|
||||
logger.info(f"AcoustID: batch {batch_num} — {total} sange")
|
||||
|
||||
conn = sqlite3.connect(db_path)
|
||||
conn = sqlite3.connect(db_path, timeout=10)
|
||||
conn.execute("PRAGMA journal_mode=WAL")
|
||||
conn.row_factory = sqlite3.Row
|
||||
|
||||
for row in rows:
|
||||
|
||||
Reference in New Issue
Block a user