LeoKlaus / plappa

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

[Feature Request?] Sync listening progress to Jellyfin/Emby #176

Open rthomasv3 opened 2 months ago

rthomasv3 commented 2 months ago

Describe the bug When the app is linked to a jellyfin server, listening progress for a book is not synced back to the server.

To Reproduce Steps to reproduce the behavior:

  1. Connect to a jellyfin server
  2. Listen to any book for a period of time
  3. Go to the jellyfin server through the web interface or jellyfin app and the progress has not been updated.

Expected behavior When listening to an audiobook I would expect the listening progress to be synced back to the server so I can continue listening from where I left off on another device.

Environment

LeoKlaus commented 2 months ago

Hey Robert, thank you for reaching out!

At the moment, this is intentional. I've found the progress tracking in Jellyfin to be rather lacking (especially for audiobooks made up of multiple files). As of now, all progress tracking is performed locally and synced via iCloud when using Jellyfin or Emby.

rthomasv3 commented 2 months ago

Yeah, makes sense, I assumed there was a pretty good reason. Would it be possible to get it added as an optional/experimental feature? If not, it looks like audio book shelf will mostly fit my needs and I can probably just switch everything over.

LeoKlaus commented 2 months ago

Would it be possible to get it added as an optional/experimental feature?

Absolutely, I think I even implemented this half way a while ago but never enabled it. The big issue with this is choosing a source of truth.

I highly suggest testing ABS, the setup is very simple and it's fairly light on resources. It also does a much better job finding metadata for audiobooks compared to Jellyfin.

zhimiaoli commented 1 month ago

I also need this feature, using both Emby and ABS , but ABS has some bugs with the Podcast library,Emby is better at handling books if I add audio files to a book periodicaly.

moeinio commented 1 month ago

Since progress is already synced through iCloud, is it possible to sync progress across different clients? Eg. From iPhone to iPad app? If ABS is hosted locally, you'd need to be connected to it to sync listening progress. That is literally the only reason why I still have to use apple books instead of this app.

LeoKlaus commented 1 month ago

Since progress is already synced through iCloud, is it possible to sync progress across different clients? Eg. From iPhone to iPad app? If ABS is hosted locally, you'd need to be connected to it to sync listening progress. That is literally the only reason why I still have to use apple books instead of this app.

Progress is only synced through iCloud with Jellyfin/Emby (in that case it is of course synced across all clients). When using ABS, your server is used exclusively for progress syncing. I could add a toggle to use iCloud instead of ABS for syncing, though.

moeinio commented 1 month ago

That would be amazing. I use the download feature on multiple devices to be able to listen while not being connected to ABS, it would be nice if the clients could sync progress on app start.