leinelissen / jellyfin-audio-player

🎵 A gorgeous Jellyfin audio streaming app for iOS and Android
https://fintunes.app
MIT License
656 stars 26 forks source link

Empty download list #166

Closed mickeydarrenlau closed 2 months ago

mickeydarrenlau commented 9 months ago

I have tons of downloads but all of them are blank items on the list

The Downloads work however. Screenshot_20230718_054523

dbolger commented 9 months ago

I'm able to reproduce this bug by downloading an album and clearing the Jellyfin cache within the app.

leinelissen commented 9 months ago

Do they show up again as soon as you view and load the respective albums?

dbolger commented 9 months ago

Do they show up again as soon as you view and load the respective albums?

Yes, that's also part of the behavior I see.

leinelissen commented 9 months ago

Yeah this figures. Due to the way Fintunes is architected, the metadata of the tracks is stored separately from the audio file. This means when you delete the metadata cache, the file loses the data it's associated with. The metadata could be stored along with the audio file, but this also means keeping the two in sync, which I'm not a huge fan of. Some rearchitecturing might come in the future that syncs all tracks with Jellyfin at once, since there have been other problems as a result of this model.

Until then, I'll leave this issue open for people with a similar problem.

mickeydarrenlau commented 9 months ago

The file download from Jellyfin already contain the album data cz I embed all data into my music

leinelissen commented 9 months ago

That's true and it's an interesting technical solution. However, I'd like to leave all the metadata parsing for the different file formats to Jellyfin if possible. There's a whole minefield of different formats (ID3, Vorbis comments, iTunes tags, etc.) that requires tons of implementation, and they might mismatch whatever is in Jellyfin. If there is a more robust metadata cache, it will solve this problem, along with a host of other ones.