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

Concept of 'local/directories'? #38

Open
Uatschitchun opened this issue Feb 1, 2020 · 3 comments
Open

Concept of 'local/directories'? #38

Uatschitchun opened this issue Feb 1, 2020 · 3 comments

Comments

@Uatschitchun
Copy link

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

@kingosticks
Copy link
Member

kingosticks commented Feb 1, 2020

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.

@NyaomiDEV
Copy link

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

@gvc0
Copy link

gvc0 commented Dec 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants