-
Notifications
You must be signed in to change notification settings - Fork 401
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
Random subfolder play #1175
base: develop
Are you sure you want to change the base?
Random subfolder play #1175
Conversation
…1182 and combined it with random subfolder play (MiczFlor#1175). Also added the possibility to play all or just a single subfolder.
Hi all, just added skip subfolder functionality as requested in #1182 Unfortunately, it required some more mangling with rfid_trigger_play.sh, but it should not be noticed by surroundings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts/rfid_trigger_play.sh
Line 516 - missing second ">" , therefore subfolder play won't start.
Thanks for your comment. |
# replace subfolder slashes with " % " | ||
PLAYLISTPATH="${PLAYLISTSFOLDERPATH}/${FOLDER//\//\ %\ }.m3u" | ||
PLAYLISTNAME="${FOLDER//\//\ %\ }" | ||
echo "" > "${PLAYLISTPATH}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "" > "${PLAYLISTPATH}" | |
echo "" >> "${PLAYLISTPATH}" |
Added https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/1175/files#r1556369182 |
Reason for improvement:
See #1170
Missing functionality to play a random subfolder when a card is assigned to the top folder and the conf is set accordingly.
Proposal:
Minor changes and additions necessary.
Possible breaking change: changed logic to check for second swipe: Instead to check for LASTPLAYLIST now LASTID is used. LASTID is basically the folder from CARDID, separating the really played folder from the one assigned to the card.
Beside this, the LASTPLAYLIST is still there and being set. I think this will not break anything and still enable a thourough secondswipe check.
Backend
New parameter introduced in "folder.conf", FOLDERSHUFFLE to save setting for folder. Also used in WebUI.
The button is shown if there is at least one subfolder. With this button, also a new api file is introduced.