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

How to refresh the library from the Iris UI? #556

Open
magcode opened this issue Jul 5, 2020 · 4 comments
Open

How to refresh the library from the Iris UI? #556

magcode opened this issue Jul 5, 2020 · 4 comments

Comments

@magcode
Copy link
Contributor

magcode commented Jul 5, 2020

Hi, I'm working on alternative SoundCloud and Mixcloud backend extensions. Both shall cache their data and only update when Mopidy's core.library.refresh is called.
However I don't find such a button in Iris. I tried other clients (Android app -> pull down -> refresh, musicbox webclient -> refresh button) where it is working fine. Screenshot shows how it is done in musicbox.

musicbox-example

Is there such a feature in Iris?
I also checked the "commands" under "settings". Maybe it would be possible to call this (as explained here mopidy/mopidy-gmusic#21 (comment))
However I don't see the command showing up anywhere in the library view and I also don't know if the current uri would be available as a variable.

@kingosticks
Copy link
Contributor

kingosticks commented Jul 5, 2020

I am sorry but can I just very briefly ask @magcode if you have considered taking over the the existing mopidy-soundcloud backend rather than creating another. It needs a maintainer and then we can avoid have two backends for the same thing. If you feel it's too slow in its existing implementation then you could absolutely change that. Please open an issue at https://github.com/mopidy/mopidy-soundcloud or come on zulip for a chat if that sounds interesting.

Hijack over!

@magcode
Copy link
Contributor Author

magcode commented Jul 5, 2020

Valid point @kingosticks. Indeed I considered it.
My extension is very limited and not comparable feature wise. It is written from scratch. It only does what I need (e.g. album & track arts, quick access to artists I follow and a stream). I have no interest and won't have the time to maintain the full SoundCloud extension. Also I will not register my version as an official extension. (I keep it open source of course)
I think the original SoundCloud extension is fine for 99.9% of all users.

@jaedb
Copy link
Owner

jaedb commented Jul 6, 2020

@magcode there isn't currently a mechanism to call core.library.refresh within Iris (besides the Settings > Debug area). In principle this would be relatively straightforward to add to a track/album/artist/playlist context menu.

@magcode
Copy link
Contributor Author

magcode commented Jul 6, 2020

Alright! Thanks for clarification. Does it make sense to file a feature request for this? If not, no problem. I'll implement some TTL logic to the library then.

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

3 participants