jaedb / Iris

Discover, explore and manage your music library across multiple sources with this beautiful web-based interface. Iris is a Mopidy frontend extension.
Apache License 2.0
1.13k stars 131 forks source link

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

Open magcode opened 4 years ago

magcode commented 4 years ago

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.

kingosticks commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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.