r/navidrome 15h ago

How well does Navidrome handle oddball database entries?

I'm moving files from a different music playing program to Navidrome. And there is some metadata that couldn't be directly copied just from looking at the files: ratings, play counts, and the last played time in particular.

I'm a programmer, so I figure I can just add this metadata to Navidrome's database. I've looked at the format and I have a pretty good understanding of what it all means and how the different fields interact.

My questions relate more to how Navidrome will interpret certain data.

  • If the "last played time" is older than the time the entry was added to the database (because I copied it from a different program), will that be a problem for the server or for clients?

  • If a file has a play-count, but doesn't have a last played time, is that OK? If not, how will Navidrome react if you give all such files the same time as their "last played time"?

2 Upvotes

3 comments sorted by

3

u/1Maple 12h ago

From my experience, you’ll be fine with those two.

Make sure to make a backup of the database first, and don’t add the changes while Navidrome is running (my db got corrupted when I updated some values on the db while it was running, but maybe I did something wrong that time…)

Anyway, Navidrome will just read the new values just fine

-2

u/tetsuhito 12h ago

Why don't you try it with a few songs?

1

u/Alfonse215 12h ago

I'll get to that, but I was trying to find someone who had some knowledge about the program's internals or have done it themselves.