LeoKlaus / plappa

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

[BUG] Book progress not being updated at all on AudioBookShelf #40

Closed boomschtick closed 2 months ago

boomschtick commented 2 months ago

Describe the bug Book progress is not being updated at all as far as I can tell. Not even on a pause or app close.

To Reproduce Steps to reproduce the behavior: 1: Start a book 2: Watch log viewer on ABS Server

Expected behavior Notice that the progress never gets updated. It should say something like this every 20 - 30 seconds: [PlaybackSessionManager] Updating progress for "Hellion [B096L11M5V]" with current time 80310.03607309 (previously 80280.043571779).

The above is an example of what happens when using the 1st party ABS client on iOS. I don't see this happening at all when using Plappa

Environment(please complete the following information):

LeoKlaus commented 2 months ago

Can you please share the debug logs from plappa after starting to listen a book?

You can find them at the bottom of settings tab under "Get Debug Logs".

Normally, the playback states are pushed every ten seconds while playing or whenever you modify playback (pause/play, fast forward, etc.).

boomschtick commented 2 months ago

[4/8/2024, 10:44 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:44 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:44 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:44 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:44 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:45 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:46 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:47 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates [4/8/2024, 10:48 AM] [AudioBookShelfAPIHandler] Successfully pushed playbackstates

LeoKlaus commented 2 months ago

Looks good so far, if plappa encountered an error while posting the states, they'd appear here.

plappa does not use ABS sessions as of now (see #15), but progress is updated. If you continue playback in the web or the official app, it should resume where you left off in plappa.

boomschtick commented 2 months ago

Ah... Interesting. Ok. I assumed if it was not in that log then it was not happening. Thanks for the quick feedback and good luck with plappa.