advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.22k stars 166 forks source link

Downloaded audiobook says progress will not be synced #945

Closed YodaDaCoda closed 10 months ago

YodaDaCoda commented 10 months ago

Steps to reproduce

  1. Download an audiobook and start listening
  2. Note that the page for the book says progress will not be synced
  3. Login to the web application via browser and note that progress is still synced as the book continues playing

Expected behaviour

Actual behaviour

Environment data

Audiobookshelf Version:

Android Issue

Android version: 13

Device model: OnePlus 9 5G

Stock or customized system: Stock

iOS Issue

iOS Version:

iPhone model:

Screenshot_2023-11-19-12-49-35-41_e9782661401ed6f222682e1e02b74bd4

nichwall commented 10 months ago

Was this book downloaded before 0.9.67? Does redownloading the book fix the message?

YodaDaCoda commented 10 months ago

This book was downloaded with v0.9.66 but the issue persists with a book freshly downloaded with v0.9.67

Screenshot_2023-11-19-14-04-11-33_e9782661401ed6f222682e1e02b74bd4

kucksdorfs commented 10 months ago

I am on 0.9.6.7-beta (2.5.0 server) and I am getting that prompt on previously downloaded books and newly downloaded books. Progress appears to be retained.

Stock Android (motorola edge, android 11, security updates August 1 2022, Play System Updates October 1 2023), no root, app from Play Store.

advplyr commented 10 months ago

I just realized what this probably is. You setup your connection on server v2.2.23 or below before we switched to UUIDs. So the user id stored on your device is the old user id and no longer matches the new one on your server.

To fix this I suggest you logout on the device, delete your existing connection and create a new one. New downloads should show that they are correctly linked.

kucksdorfs commented 10 months ago

To fix this I suggest you logout on the device, delete your existing connection and create a new one. New downloads should show that they are correctly linked.

So I am fine doing this, but will I think this is unrealistic if people have a lot of books downloaded. Or its "expensive" to download books (in terms of time for example).

advplyr commented 10 months ago

I can push up a fix in the next update. Progress will still be synced properly for all of those items because the server knows how to handle the old user ids. The main issue is that the alert is confusing and misleading. I still recommend updating the server connection so you have the new UUIDs stored locally.

advplyr commented 10 months ago

Fixed in v0.9.68-beta