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

Can't get "recently added" or "recently played" #423

Closed
dalecooper opened this issue Dec 9, 2023 · 9 comments
Closed

Can't get "recently added" or "recently played" #423

dalecooper opened this issue Dec 9, 2023 · 9 comments

Comments

@dalecooper
Copy link

Hi there,
I'm running Gonic 0.16.1 and in the Android clients I use (Ultrasonic and Subtracks) I can't get the list of recently added albums or recently played albums.
I recently switched from Airsonic to Gonic and this feature used to works perfectly.
I run Gonic with systemd and all my folders are correctly set in the config file, I have no idea why this doesn't work.
Any hint?
Cheers

That's the only issue I have with Gonic by the way, so glad I found this super light server which perfectly fits my needs!

@sentriz
Copy link
Owner

sentriz commented Dec 9, 2023

did you check gonics logs ?

@dalecooper
Copy link
Author

dalecooper commented Dec 9, 2023

Thank you for you swift reply.
First I have to correct myself, I meant "recently played" and "most played", no problem with "recently added"

systemctl status at restart gives me

Dec 9 19:15:41 andrea gonic[3247]: 2023/12/09 19:15:41 stopped job "session clean"
Dec 9 19:15:41 andrea gonic[3247]: 2023/12/09 19:15:41 stopped job "podcast refresh"
Dec 9 19:15:41 andrea systemd[1]: Stopping gonic service...
Dec 9 19:15:41 andrea gonic[3247]: 2023/12/09 19:15:41 stopped job "http"
Dec 9 19:15:41 andrea gonic[3247]: shutdown complete
Dec 9 19:15:41 andrea systemd[1]: gonic.service: Succeeded.
Dec 9 19:15:41 andrea systemd[1]: Stopped gonic service.
Dec 9 19:15:41 andrea systemd[1]: Started gonic service.
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 starting gonic v0.16.1
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 provided config
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 cache-path /var/cache/gonic
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 config-path /etc/gonic/config
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 db-path /var/lib/gonic/gonic.db
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 exclude-pattern
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 expvar false
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 genre-split
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 http-log true
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 jukebox-enabled false
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 jukebox-mpv-extra-args
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 listen-addr 0.0.0.0:4747
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 multi-value-album-artist none
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 multi-value-artist none
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 multi-value-genre none
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 music-path /data/music/Misc
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 playlists-path /srv/audio/playlists
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 podcast-path /var/cache/podcast
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 podcast-purge-age 0
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 proxy-prefix /gonic
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 scan-at-start-enabled false
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 scan-interval 0
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 scan-watcher-enabled false
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 tls-cert
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 tls-key
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 version false
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 starting job "http"
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 starting job "podcast refresh"
Dec 9 19:15:41 andrea gonic[33967]: 2023/12/09 19:15:41 starting job "session clean"

And here are the logs when I try to display, in this order, recently added, recently played, most played :

Dec 9 19:18:01 andrea gonic[33967]: 2023/12/09 19:18:01 response #33[42;1m 200 #33[0m GET /getAlbumList2?type=newest&size=20&offset=0&u=coolredape&c=Ultrasonic&f=json&v=1.15.0&t=ca1f0dcd87ee3081fc32de3930396099&s=0BEC2D0011D7BD149108EBAE062AE3DE
Dec 9 19:18:04 andrea gonic[33967]: 2023/12/09 19:18:04 response #33[42;1m 200 #33[0m GET /getAlbumList2?type=recent&size=20&offset=0&u=coolredape&c=Ultrasonic&f=json&v=1.15.0&t=c9bb87841e262bc2051046a4b4fd5f43&s=A1692F4D115E7E7DD2627D98932ADA9B
Dec 9 19:18:06 andrea gonic[33967]: 2023/12/09 19:18:06 response #33[42;1m 200 #33[0m GET /getAlbumList2?type=frequent&size=20&offset=0&u=coolredape&c=Ultrasonic&f=json&v=1.15.0&t=b7fda70cfbcc2f7f854581b8e5e63a30&s=FFE8CB1315ECDABEEAD43B289FB7570F

Ubuntu 20.04 , behind an Nginx proxy, in case it matters

EDIT : removed code block as I can't seem to get proper line breaks and it was unreadable

@sentriz
Copy link
Owner

sentriz commented Dec 9, 2023

hm and for recently played, have you recently played anything? you need to enable scrobbling (even if you don't use lastfm) for that to work

@dalecooper
Copy link
Author

So yes, I've played quite a lot of stuff, but scrobbling is not enable as I don't use it at all.
Will try that right now, thanks!

@dalecooper
Copy link
Author

Sorry if this is a dumb question, but how is it possible to enable scrobbling if I don't use last.fm ? As I understand it I need a last.fm account to get an access to the API, right ?

@sentriz
Copy link
Owner

sentriz commented Dec 10, 2023

no i mean in your client settings. it will have "enable scrobbling" or something. you dont need to do anything on the gonic side

@sentriz
Copy link
Owner

sentriz commented Dec 10, 2023

@dalecooper in Ultrasonic it's "Scrobble my plays"

image

@dalecooper
Copy link
Author

It was not obvious, but that was it, thanks a lot for the help!

@sentriz
Copy link
Owner

sentriz commented Dec 10, 2023

i agree it's a little non obvious. but there are tradeoffs involved. more details on the decicison here if you're interested opensubsonic/open-subsonic-api#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants