sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.49k stars 105 forks source link

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

Closed dalecooper closed 6 months ago

dalecooper commented 6 months ago

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 commented 6 months ago

did you check gonics logs ?

dalecooper commented 6 months ago

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 #033[42;1m 200 #033[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 #033[42;1m 200 #033[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 #033[42;1m 200 #033[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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

image

dalecooper commented 6 months ago

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

sentriz commented 6 months ago

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