doctorfree / RoonCommandLine

The Roon Command Line project provides Bash and Python scripts to enable command line control of the Roon audio system over a local network.
https://rooncommand.dev
Apache License 2.0
24 stars 3 forks source link

Select from Favorites? #7

Open dkvdm opened 4 months ago

dkvdm commented 4 months ago

Hi there,

Is it possible to select from your Favorite albums, which is part of the Focus functionality in Roon?

Thanks!

doctorfree commented 4 months ago

@dkvdm Hi, I don't see favorites supported in the Roon API but I will poke around and see if I can get that to work. Good suggestion. It's just that we cannot do more than what the API will allow.

dkvdm commented 4 months ago

@doctorfree I've been poking around, but I can’t seem to find a path to list favorite albums. Ultimately my goal is to build a favorite album randomizer. The workaround I was planning was to get album metadata for each album, and collect them if they have the favorite marker. However, I cannot seem to find anything in the Roon API that makes this possible. As you have a lot more knowledge on the API, I’d appreciate your insights 😃

dkvdm commented 3 months ago

hey @doctorfree, did you manage to look into this? I'm not looking for a full implementation, but rather if this is possible, after which I can try and figure it out myself :)

doctorfree commented 3 months ago

@dkvdm my initial pass through the Roon API looking for anything we could use to identify favorites came up empty. However, I have not had much time to investigate as my day job reared its head. I will try to carve out some time this weekend but prospects appear dim.

dkvdm commented 3 months ago

Going above and beyond, I appreciate you sir!

dkvdm commented 3 months ago

for what it’s worth, I continue to find nothing. I’m going to try and take a look at the raw database and try to query it myself. I believe it’s a LevelDB.

doctorfree commented 3 months ago

@dkvdm you may get some intelligent feedback by posting to the Roon Community forum. Tag the author of the Python Roon API, Greg Dowling. He is GregD on that forum.

See https://community.roonlabs.com/t/roon-command-line-control-version-2/178731/1

dkvdm commented 3 months ago

Will do! https://community.roonlabs.com/t/is-there-a-way-to-get-programmatic-access-to-my-favorites/279401/6