advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
5.52k stars 379 forks source link

[Bug]: Web sessions dont show sync to mobile app #2953

Closed hskrtich closed 3 weeks ago

hskrtich commented 3 weeks ago

What happened?

When I listen to a book I have already started on my mobile device and switch to web, the book picks up at the correct place. When I switch back to my mobile it doesnt pick up the new place in my book.

I have tried completely closing out of the book and closing out of the app to try to get it to sync.

When checking the backend listening sessions, I do see both the web sessions and the mobile but the mobile app still will only see its sessions.

Web interface image

Android App image

What did you expect to happen?

The mobile app should at least show the web sessions.

Steps to reproduce the issue

  1. Start a book on android
  2. Switch to web player
  3. Try to switch back to android

Audiobookshelf version

v2.9.0 server, 0.9.73-beta android

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

https://logpaste.com/z19XWMfu

Additional Notes

No response

nichwall commented 3 weeks ago

The listening sessions you see on Android are device specific and do not sync with the server. The server listening sessions are only "total time listened during the session."

Listening sessions are planned to be reworked to allow for better syncing and viewing, but this hasn't happened yet.

https://github.com/advplyr/audiobookshelf/issues/2004

advplyr commented 3 weeks ago

The play/pause history page is local only but the green cloud checkmark shows that it has been synced with the server.

Is the book downloaded? Have you tried this with other books?

hskrtich commented 3 weeks ago

This book is downloaded in the android app. I have tried this with others (including one that isnt downloaded) and I still cant get web progress to sync.

hskrtich commented 3 weeks ago

Ok, it doesnt seem to be happening with streamed books, just with downloaded books. Although I am not seeing the "sync" entry under history.

hskrtich commented 3 weeks ago

With even more testing, it seems to be only happening with this one book. I will try to narrow the issue down some more but this isnt the only book I have had this issue with.

advplyr commented 3 weeks ago

M4B or MP3? Variable bitrate mp3 can have issues seeking correctly

hskrtich commented 3 weeks ago

M4B but now im not seeing the issue at all. I have no idea what has changed.

advplyr commented 3 weeks ago

Maybe a networking hiccup. Lmk if it becomes reproducible