-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Feature request] Scrobble songs played when offline #106
Comments
Sounds good. I add it to the feature list. |
The feature is implemented in this commit 8cd927f. |
I assume this can be closed. If not feel free to reopen it again. |
I can't make this work with Amperfy 1.1.2 (3) and Navidrome v0.49.3 I play a cached track with offline mode off while connected to 4G. After playing the track I connect to my home network using VPN and Amperfy doesn't scrobble the track that was previously played. Rebooting the app doesn't push the "offline" scrobble either. If I play a new track while connected to my home network with VPN scrobbling works. I could connect to VPN at all times and have no problem but I just want clarification how this is supposed to work or if this is a bug. |
When you are in offline mode or no network is reachable the song gets added to the database with upload required flag. |
Ok thank you that's exactly what I thought, what I'm saying is it doesn't work for me. I think I know what's going on. I did a test listening to a cached track while disconnected from wifi using only cellular. After the track finished I connected to my home network with VPN over cellular and the scrobble came through! However, if I have wifi on and am connected to a different network (not my home network) the same procedure doesn't work. It seems like there is a specific wifi off flag requirement for this to work. |
I’m also having issues with this. Wouldn’t it make more sense to see if the server is available, rather than looking at network connectivity? After all, scrobbling is dependent on the server itself, which can be unavailable even if your phone is connected to the internet. |
In addition, upon testing some more again, it seems like all the scrobbles are timestamped for the moment the device goes online again, rather than the moment they were played. This seems like a bit of an oversight as well. |
I took a look at the code, hoping I could write a fix myself (at least for the time stamp issue). As far as I understand the date a song is played is cached, but that time stamp just isn’t used when pushing the play to the server (it explicitly uses date: nil). It seems like an easy fix, but it’s been a long while since I’ve coded. Would you accept a PR to fix this, @BLeeEZ? If so, I think I’ll invest the time in reading up a bit and trying to write a fix. |
I am happy for every incoming PR. |
Hey @BLeeEZ beta has expired, is there a pause over the summer or just no more betas moving forward? Cheers |
Hi, there is currently nothing to test. I will release a new beta when enough features are ready to test. |
It’d be great if songs played while offline were synced with the server when going back online. Play:sub does this, to give an example.
The text was updated successfully, but these errors were encountered: