mopidy-local icon indicating copy to clipboard operation
mopidy-local copied to clipboard

Concept of 'local/directories'?

Open Uatschitchun opened this issue 5 years ago • 3 comments

Would someone be so kind to explain the concept of the above named config setting? I don't get what this setting does, why it is needed and how it is used...

Uatschitchun avatar Feb 01 '20 09:02 Uatschitchun

It's an optional config, it's not needed.

It allows you to customise the virtual directories that are shown when you use the extension's browse feature. How you access the browse content very much depends on your client.

You can see the default settings at https://github.com/mopidy/mopidy-local/blob/master/mopidy_local/ext.conf#L23

You would probably need to read the source to fully understand the uri format and available options here. But, for example, if you just wanted to hide some of the directories then you would delete the specific item(s) from this config.

kingosticks avatar Feb 01 '20 09:02 kingosticks

Actually, it would be better to write some documentation about those URIs. I wanted to define a custom virtual directory called "Recently added tracks" that would display the latest 200 added tracks sorted by newest. I cannot do it because I don't know how to use URIs and the source is not clear enough for users (it isn't even commented for us to understand something).

I tried to do the "last month's tracks" virtual directory by adding together "type=track" and "max-age=max-age=2592000" but Iris won't show any tracks in it, while MPD clients such as Cantata would do it. I really cannot understand why though

NyaomiDEV avatar Feb 01 '20 14:02 NyaomiDEV

I created a new virtual directory going of the definition of the existing ones:

Last year's updates local:directory?type=album&max-age=31536000

It works fine in different MPD clients like Cantata and MAFA (on Android). If it doesn't work in Iris than I guess it's an issue with this web extension.

gvc0 avatar Dec 20 '22 09:12 gvc0