-
Notifications
You must be signed in to change notification settings - Fork 402
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
🚀 | Enable Phoniebox to play a random subfolder #1170
Comments
Investigating further, I figured that the second swipe is not working anymore with my quick&dirty enhancement. Is there a specific reason why the secondswipe check is based upon the " Latest_Playlist_Played" as found in "rfid_triggerplay.sh"?
First guess would be to simple avoid this and aim directly for the CARDID (adding another file to store this in the same manner as playlist) |
Hi @matthias-pelger |
Hi @MiczFlor, This just adds stuff to enable the WebUI to show an additional button for shuffle subfolders and a debug option. Biggest change is in file "rfid_trigger_play.sh" where I changed the logic of secondswipe check from LASTPLAYLIST to LASTID. LASTID is basically the folder from CARDID, seperating the really played folder from the one assigned to the card. I thought on creating a pull request right away, but first I wanted some input and maybe ideas on improving things or make it more acceptable for the project. I run this version now all evening and have no bugs found so far. Happy to hear your thoughts on this! |
This feature would be great. Is there a way to achieve this as an amateur? |
hi @alwashe, to be honest, I'm a newbee to git. I only know of two options:
Maybe @MiczFlor or @s-martin or someone else knows of a trick here? |
This would be great to get merged. Looking forward to get this. Currently I need to reassign RFID tags each second day to a new episode |
I think this feature is absolutly essentlial. I can't make 500 rfid cards for every episode!? or do i miss something? |
I've tried to edit it manually by myself but it didnt work. |
This feature makes so much sense. Will it be supported in Version 3? |
The PR #1175 is implementing this feature, but only for V2 so far |
Feature Description
Scenario:
There are a lot of episodes of a certain audiobook (e.g. Benjamin Blümchen) and the user does not care which specific episode is going to be played, but all chapters of that episode need to be played in ordered mode (obviously :) ).
The files are ordered in that way:
AUDIOFOLDERSPATH/Benjamin Blümchen/Episode 1/.mp3
AUDIOFOLDERSPATH/Benjamin Blümchen/Episode 2/.mp3
The RFID-Tag is assigned to the top folder (in this case Benjamin Blümchen) via frontend. This would normaly lead to play all subfolders in ordered mode, which is great for most cases :)
As an inspiration/solution I provide my personalized way to do this.
My solution is to put a file named "random" with no content on the top level, making this the new file layout:
AUDIOFOLDERSPATH/Benjamin Blümchen/random
AUDIOFOLDERSPATH/Benjamin Blümchen/Episode 1/.mp3
AUDIOFOLDERSPATH/Benjamin Blümchen/Episode 2/.mp3
And apply this patch to the "scripts/rfid_trigger_play.sh" in line 321:
The text was updated successfully, but these errors were encountered: