speutel / oyster

Jukebox software written in Python
2 stars 2 forks source link

Repair score file #8

Open ethric opened 10 years ago

ethric commented 10 years ago

It would be nice if "Extras/Clear Score File" not only removed files from the scores but also tried to find fitting replacements. This should be feasible in cases where files are simply moved into different folder structures or mp3 albums are replaced by flac versions.

windmueller commented 10 years ago

Finding replacements based on file names may be tricky. What happens if multiple matching files are found and what happens to the score value of the matching file?

In my opinion Oyster needs a database-like structure with more information for each track (like its length) to solve this issue best.

ethric commented 10 years ago

I totally agree. Oyster requires quite some code overhaul. That's why we started @Oyster3

However, this probably won't happen in the near future. And a simple repair algorithm with some heuristics and user interaction might solve the problem sufficiently. I can only speak for myself, but there are usually only two cases that break my score files:

1) I rip CDs again to replace old mp3 or ogg files by flac files, which only changes the file extension.

2) I rearrange directory structures (e.g. splitting "Soundtracks" into "Game Soundtracks" and "Movie Soundtracks"), which leaves much of the path's suffix (not only the file name) intact.

Of course, if one changes everything at once, this won't work automatically anymore.

I tagged this issue as enhancement. We might think about realizing it some time...