LeoKlaus / plappa

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

[BUG] Plappa does not use the local file in certain situations and streams instead #105

Open mrburns-42 opened 1 month ago

mrburns-42 commented 1 month ago

Describe the bug I listened to an audiobook on stream. I downloaded the audiobook at the same time. After completing the download, I paused and restarted the audiobook to use the local file instead of the stream. Plappa continues to use the stream instead of the local file.

It only works when the app is restarted or alternatively the player is closed completely.

To Reproduce Steps to reproduce the behavior:

  1. Go to an audiobook.
  2. Click on Download.
  3. Click on Play.

After the download finished:

  1. Pause the audiobook.
  2. Resume the audiobook.

Expected behavior Ideally, you should switch to an audiobook after downloading it. At least at the moment when the audiobook is paused and then continued.

Environment(please complete the following information):

LeoKlaus commented 1 month ago

plappa will switch to the downloaded file automatically while playing, you don't have to pause or anything.

I believe the only way to reproduce this is to stop playback and without going back from the detail view start it again.

I'll see what's causing this and implement a fix.