feat: add NAS management UI and operation history
This commit is contained in:
@@ -53,6 +53,7 @@ def acoustic_dedupe(db_path: Path, root: Path, dry_run: bool = False) -> dict:
|
||||
if lp.stat().st_ino != wp.stat().st_ino:
|
||||
if not dry_run:
|
||||
hardlink_duplicate(lp, wp)
|
||||
conn.execute("INSERT INTO operations(action,file_path,winner_path,details) VALUES(?,?,?,?)", ('acoustic-hardlink',str(lp),str(wp),f'chromaprint similarity={sim:.3f}'))
|
||||
conn.execute("UPDATE audio_tracks SET status='hardlinked',review_status=?,updated_at=CURRENT_TIMESTAMP WHERE id=?", (f"acoustic={sim:.3f};winner={wp}", loser["id"]))
|
||||
stats["equivalent"]+=1
|
||||
return stats
|
||||
|
||||
Reference in New Issue
Block a user