Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Offline listening statistics are not being captured #381

Closed
ambarnes2 opened this issue Sep 13, 2022 · 4 comments
Closed

[Bug]: Offline listening statistics are not being captured #381

ambarnes2 opened this issue Sep 13, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ambarnes2
Copy link

Describe the issue

When listening to audiobooks via the Audiobook Shelf Android app, the listening statistics are not being captured correctly. For example. I have been listening to a book on and off today (Over 2 hours) but the listening stats only show 5min.

Steps to reproduce the issue

  1. Listen to book on android app
  2. Go to audiobookshelf docker page and review listening stats
  3. Observe lack of proper stats

Audiobookshelf version

2.1.4

How are you running audiobookshelf?

Docker

@ambarnes2 ambarnes2 added the bug Something isn't working label Sep 13, 2022
@advplyr
Copy link
Owner

advplyr commented Sep 13, 2022

Completely offline listening sessions are not yet implemented for android

@advplyr advplyr transferred this issue from advplyr/audiobookshelf Sep 13, 2022
@advplyr advplyr changed the title [Bug]: Listening statistics are not being captured correctly [Bug]: Offline listening statistics are not being captured Sep 13, 2022
@lostleonardo
Copy link

lostleonardo commented Feb 5, 2023

First things first, this is an exceptional piece of work. I jumped on the self-hosting bandwagon last year and one of the things I was really keen to find was a good audiobook player. When I found Audiobookshelf I practically fell in love. Something about the main page looking like an actual bookcase really grabbed me--and the overall design and UX are right up my street.

With that out of the way :-), I was just scrolling through the issue tracker to see if this exact issue had already been logged. Good to know that it's just a case of the feature not having been implemented yet.

If you're interested / amenable to somebody else picking this up, I could take a look. No guarantees, but if you could point me in the right direction, I'd be happy to go from there.

Possibly related (or possibly not), I was wondering if the app needs to keep trying to sync when the device does not have network access? As per the 'history' (another welcome addition), it is apparent that the app is trying to sync with the server roughly every 15 seconds, when a track is playing. That makes sense, I think. However, the app keeps trying to sync with the server even when the app 'knows' (one of the icons changes) that the server is not accessible.

Thanks again,

LL

@advplyr
Copy link
Owner

advplyr commented Feb 5, 2023

That is great, I'm glad you are finding so much value in Abs.
This issue is something I'm hoping to make some progress on today actually. The code with this is a bit of a mess right now so it is probably not something you want to sift through.
The app does not need to keep trying to sync to the server when there is no connection. I must have just overlooked that.

@advplyr
Copy link
Owner

advplyr commented Feb 23, 2023

Fixed in v0.9.62-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants