LeoKlaus / plappa

An Audiobook client for Jellyfin and AudioBookShelf, written in Swift/SwiftUI.
https://plappa.me
236 stars 1 forks source link

[BUG] Downloaded audiobooks disappear (audiobookshelf) #212

Open OscarCastillero opened 2 weeks ago

OscarCastillero commented 2 weeks ago

Describe the bug Downloads will delete after a few hours sometimes minutes

To Reproduce Steps to reproduce the behavior:

  1. Download any audiobook
  2. Wait
  3. Close app
  4. Open app
  5. Check downloads
  6. No downloads

Expected behavior Downloads should remain permanent until manually deleted, additionally downloads should be prioritized over streaming.

Environment(please complete the following information):

LeoKlaus commented 2 weeks ago

Hi Oscar,

Thank you for reporting this.

Are you connected to an ABS or Jellyfin/Emby server?

When you play any of the previously downloaded files, what shows up in the player?

For downloaded books, it should say "Playing downloaded file" whereas a stream would be indicated by "Streaming from [your-abs-domain]".

image

mrburns-42 commented 2 weeks ago

Hi @LeoKlaus ,

I have also been observing the disappearance of downloads for several weeks now. This is not only happening to me, but has also been reported to me by other users in my field. However, it is a little different for me, the audio book is on my smartphone for a few hours or days, for example, and can also be played as a download. Then it suddenly disappears and has to be downloaded again. However, I have not yet recognized a pattern.

justcallmelarry commented 2 weeks ago

I've also noticed them disappearing if the data on the server (like name or chapter data) updates, and will then need to be redownloaded

this might be the easiest way to solve the updated data, but if you dont pick up on the behaviour perhaps it would be confusing

LeoKlaus commented 1 week ago

I've also noticed them disappearing if the data on the server (like name or chapter data) updates, and will then need to be redownloaded

this might be the easiest way to solve the updated data, but if you dont pick up on the behaviour perhaps it would be confusing

Thank you for the hint! I've just implemented a fix. It should come to TestFlight shortly with the 1.5.0 update, the AppStore might have to wait a short while as the fix isn't easily backported to older versions.

mrburns-42 commented 1 week ago

I am pretty sure that the problem occurs with my users regardless of updates to chapters, names or similar. But I'll just keep an eye on it now.

mrburns-42 commented 21 hours ago

I have now noticed that the download of audiobooks whose metadata has been changed has disappeared. But this has already been fixed. I have also noticed that another user's download has disappeared, even though there were no changes to the audio file or the metadata. The audiobook was freshly added to ABS, metadata edited and only then did the user open Plappa and download it. One day later, the download was gone again.