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. |
Karli2727
left a comment
There was a problem hiding this comment.
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.
| echo "" > "${PLAYLISTPATH}" | |
| echo "" >> "${PLAYLISTPATH}" |
Added https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/1175/files#r1556369182 |
…, MiczFlor#1175) Added functionality to skip to next subfolder as requested in MiczFlor#1182 and combined it with random subfolder play (MiczFlor#1175). Also added the possibility to play all or just a single subfolder.
…, MiczFlor#1175) Added functionality to skip to next subfolder as requested in MiczFlor#1182 and combined it with random subfolder play (MiczFlor#1175). Also added the possibility to play all or just a single subfolder.
…, MiczFlor#1175) (#2) * Added functionality to play random subdirectory ans skip (MiczFlor#1182, MiczFlor#1175) Added functionality to skip to next subfolder as requested in MiczFlor#1182 and combined it with random subfolder play (MiczFlor#1175). Also added the possibility to play all or just a single subfolder. --------- Co-authored-by: matthias-pelger <matthias.pelger@t-online.de>
…zFlor#1182, MiczFlor#1175) (#2)" This reverts commit 88d33ce.
…, MiczFlor#1175) (#2) * Added functionality to play random subdirectory ans skip (MiczFlor#1182, MiczFlor#1175) Added functionality to skip to next subfolder as requested in MiczFlor#1182 and combined it with random subfolder play (MiczFlor#1175). Also added the possibility to play all or just a single subfolder. --------- Co-authored-by: matthias-pelger <matthias.pelger@t-online.de>
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.