Posts: 25
Threads: 12
Joined: Feb 2020
Reputation:
0
hello
I was wondering if there a command to jump folder to folder by pressing the same key "0" button on remote control
at the moment I have it setup as
press 1 = mp3 plays
press 2 = classic plays
press 3 = etc plays
and so on
many thaanks
Posts: 14,570
Threads: 333
Joined: Mar 2018
Reputation:
596
It could be simpler but still not trivial and would require several moving parts like below.
1. Maintain a list of folder paths for a "jump" list
2. Create an API (command) to perform "play_next_folder" in the jump list
Most of the complexity will be in #1 because it prolly involves adding a context menu selection to Folder view for example "Add to jump list" plus the JS and PHP code behind it, and then a maintenance screen for move/delete items in the jump list plus the JS and PHP code behind it.
Then you could map button 0 to "play_next_folder"
Nice challenge for a dev that wants to learn how to add a feature to moode :-)
Posts: 14,570
Threads: 333
Joined: Mar 2018
Reputation:
596
You don't need to know anything about the folder structure because Folder view already presents it. You simply navigate to a desired folder, click "Add to jump list" in the context menu and that folder path is added to the list. The list can be stored as a simple text file in /var/local/www/
A separate maintenance screen provides a way to remove or move items in the list. Basically a copy of the "Edit playlist" screen.
It very straight forward but as I mentioned earlier if you haven't ever implemented a feature like this in moode it will seem complex because of the number of parts.
It wouldn't go on my TODO list unless there were a significant number of requests for it.