Iris icon indicating copy to clipboard operation
Iris copied to clipboard

How to refresh the library from the Iris UI?

Open magcode opened this issue 4 years ago • 4 comments

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 https://github.com/mopidy/mopidy-gmusic/issues/21#issuecomment-60469113) 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.

magcode avatar Jul 05 '20 13:07 magcode

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!

kingosticks avatar Jul 05 '20 14:07 kingosticks

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.

magcode avatar Jul 05 '20 15:07 magcode

@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.

jaedb avatar Jul 06 '20 08:07 jaedb

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.

magcode avatar Jul 06 '20 08:07 magcode