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

Feature request: Random playlist #17

Open
michaelcadilhac opened this issue Aug 13, 2017 · 2 comments
Open

Feature request: Random playlist #17

michaelcadilhac opened this issue Aug 13, 2017 · 2 comments

Comments

@michaelcadilhac
Copy link

I often use Subsonic to randomly go through my library. It used to be that the former mopidy-subsonic plugin offered a "random" playlist, would it be possible to have the same here?

Cheers;
M.

@Prior99
Copy link
Owner

Prior99 commented Aug 14, 2017

There is an api route for getting random songs on subsonic's side and the corresponding utility in py-sonic also exists.

I guess in SubidyPlaylistsProvider.as_list we could call that utility and add a new playlist to the returned list of playlists.

However, I am unsure. Doesn't mopidy cache (at least for some time) the stuff we give it? We would have to refresh that playlist everytime the user clicks on it. Would that be a problem?

@michaelcadilhac
Copy link
Author

At first glance, I cannot find any caching in mopidy or in iris. Do you see a particular place? One possible trick, if they cache the contents of the playlists, is to always give a fresh playlist with a new reserved ID.

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

2 participants