Playback cut-off after file replacement

Issue description:

Hi Tolriq,

I added a new song to my Navidrome server (latest version), synced it to my phone with Symfonium and listened to it. I then noticed that something in the transcoding must have gone wrong, because the song was cut off at some point. Instead of being over 3 minutes long, the song from the file was shorter (2:21 min). The end part was just missing. I double checked on Navidrome and the file directly and confirmed it was the file.

I then replaced the file with a correct one. Navidrome picked it up directly and showed me the real duration of the song. Everything is working there.

I then deleted the file from my phone inside Symfonium and let the app resync the playlist. With this the song was then downloaded anew.

BUT it still showed a duration of 2:21 mins. I then deleted the song again from my phone, but this time together with the whole playlist and everything and synced everything again.

Now I have the following state: If I view the playlist, the correct duration for this song is showed. If I play this song, the old duration is showed in the now playing menu (correct name?). The wave form in the now playing menu looks like the correct wave form of the complete song (with the fading at the end of the song), not the faulty one. I can tap on the wave form to jump to a specific point in the song, but this is then not the correct point regarding the wave form, but for the 0 to 2:21 min timeframe (example: Pressing in the middle jumps to the point what would be 1:10 min of the song, not something like 1:30+). So the wave form is out of sync with the played song.

For me it seems like the duration of the song (2:21 min) is stored somewhere, even when I delete the song and resync it again.

In my debug file I played this song, skipped to the middle of the song via the wave form and let it play to the “end” (2:21 min) where it skips to the next song in the playlist.

Logs:

Upload description: nesasio93-playback-cut-off

Additional information:

 
Navidrome: 0.54.5
Symfonium: 12.0.0
 

Reproduction steps:

 

  1. Add faulty song to navidrome (maybe it’s irrelevant that it was a faulty file and the only important part is replacing a file with another one where the new version has a different song duration)
  2. Sync to Symfonium
     

Media provider:

Subsonic

Screenshots:

 

    

You are using playback cache.

Settings / Advanced / Clear Playback cache.

So I pressed on Settings / Advanced / Clear Playback cache (or in german: Einstellungen / Erweiterte Einstellungen / Wiedergabecache löschen) and the app restarted. Should this action alone fix the issue? Because the behavior is still the same…
Deletion of the file and resync does not help after deleting the playback cache :frowning:

Oh, I again deleted the playback cache, but before I deleted the … “media info cache” ? (“Medieninfocache leeren” in german). Two above “Clear Playback cache”. It seems to be fixed now!

Thank you Tolriq! :slight_smile: