Closed tobiasnix closed 4 years ago
Tried to gather some more informations: All files and folders are renamed (no whitespaces or special characters) and all permissions are set to 777/666
pi@raspberrypi:~/RPi-Jukebox-RFID/shared/audiofolders $ ls -alR Folder-A
Folder-A:
total 20
drwxrwxrwx 5 pi www-data 4096 Dec 20 15:34 .
drwxrwxrwx 7 777 pi 4096 Dec 20 15:19 ..
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:30 Subfolder-A
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:30 Subfolder-B
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:33 Subfolder-C
Folder-A/Subfolder-A:
total 8712
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:30 .
drwxrwxrwx 5 pi www-data 4096 Dec 20 15:34 ..
-rwxrwxrwx 1 pi www-data 8909833 Dec 20 15:19 1.flac
Folder-A/Subfolder-B:
total 8164
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:30 .
drwxrwxrwx 5 pi www-data 4096 Dec 20 15:34 ..
-rwxrwxrwx 1 pi www-data 8349056 Dec 20 15:19 2.mp3
Folder-A/Subfolder-C:
total 4472
drwxrwxrwx 2 pi www-data 4096 Dec 20 15:33 .
drwxrwxrwx 5 pi www-data 4096 Dec 20 15:34 ..
-rwxrwxrwx 1 pi www-data 4567653 Dec 20 15:19 3.mp3
I have cleared playlist folder and tried to start the recursive folder play with the card (not working) and also through the webinterface (working).
pi@raspberrypi:~/RPi-Jukebox-RFID/playlists $ ls -la
total 12
drwxrwxrwx 2 pi pi 4096 Dec 20 15:37 .
drwxr-xr-x 11 pi pi 4096 Dec 20 14:17 ..
-rw-r--r-- 1 pi pi 0 Dec 20 15:37 Folder-A.m3u
-rw-r--r-- 1 root root 220 Dec 20 15:37 Folder-A %RCRSV%.m3u
The playlist generated by the card-id is empty (Folder-A.m3u) the playlist generated through the webinterface does list the files. Seems like the problem is related to an empty generated playlist as using the card id vs a full playlist playing from the webinterface.
Found the file https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/master/scripts/rfid_trigger_play.sh and the option -v=recursive
. Its working with that option attached but only in shell and through webinterface. Seems like this option has to be passed to the script. How can i add this parameter to a card id? Am i missing a configuration option or an option in the webinterface?
From the log: ./rfid_trigger_play.sh -i=0016021590 -v=recursive
########### SCRIPT rfid_trigger_play.sh (2018-12-20.18:49:33) ##
######### SCRIPT inc.readArgsFromCommandLine.sh (2018-12-20.18:49:33) ##
# VAR CARDID: 0016021590
# VAR COMMAND:
# VAR FOLDER:
# VAR VALUE: recursive
Card ID '0016021590' was used
This ID has been used before.
The shortcut points to audiofolder 'Folder-A'.
# Attempting to play: /home/pi/RPi-Jukebox-RFID/shared/audiofolders/Folder-A
# Type of play $VALUE: recursive
$FOLDER set, not empty and dir exists: /home/pi/RPi-Jukebox-RFID/shared/audiofolders/Folder-A
Var $LASTFOLDER: Folder-A
Var $LASTPLAYLIST: Folder-A %RCRSV%
Checking 'recursive' list? VAR $VALUE: recursive
/home/pi/RPi-Jukebox-RFID/scripts/playlist_recursive_by_folder.php folder="Folder-A" list='recursive' > "/home/pi/RPi-Jukebox-RFID/playlists/Folder-A %RCRSV%.m3u"
Var $SECONDSWIPE: RESTART
Var $PLAYLISTNAME: Folder-A %RCRSV%
Second Swipe DID happen: $LASTPLAYLIST == $PLAYLISTNAME
We must play the playlist no matter what: $PLAYPLAYLIST == yes
VAR FOLDER: Folder-A
VAR PLAYLISTPATH: /home/pi/RPi-Jukebox-RFID/playlists/Folder-A %RCRSV%.m3u
Command: /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh -c=playlistaddplay -v="Folder-A %RCRSV%" -d="Folder-A"
started from card reader
########### SCRIPT rfid_trigger_play.sh (2018-12-20.18:50:00) ##
######### SCRIPT inc.readArgsFromCommandLine.sh (2018-12-20.18:50:00) ##
# VAR CARDID: 0016021590
# VAR COMMAND:
# VAR FOLDER:
# VAR VALUE:
Card ID '0016021590' was used
This ID has been used before.
The shortcut points to audiofolder 'Folder-A'.
# Attempting to play: /home/pi/RPi-Jukebox-RFID/shared/audiofolders/Folder-A
# Type of play $VALUE:
$FOLDER set, not empty and dir exists: /home/pi/RPi-Jukebox-RFID/shared/audiofolders/Folder-A
Var $LASTFOLDER: Folder-A
Var $LASTPLAYLIST: Folder-A %RCRSV%
Checking 'recursive' list? VAR $VALUE:
/home/pi/RPi-Jukebox-RFID/scripts/playlist_recursive_by_folder.php folder="Folder-A" > "/home/pi/RPi-Jukebox-RFID/playlists/Folder-A.m3u"
Var $SECONDSWIPE: RESTART
Var $PLAYLISTNAME: Folder-A
We must play the playlist no matter what: $PLAYPLAYLIST == yes
VAR FOLDER: Folder-A
VAR PLAYLISTPATH: /home/pi/RPi-Jukebox-RFID/playlists/Folder-A.m3u
Command: /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh -c=playlistaddplay -v="Folder-A" -d="Folder-A"
HI @tobiasnix sorry for the late reply, there is no way to add a card for recursive subfolder play at the moment. A card linked to a folder at the moment will only play the files inside the folder itself (and should also play webradio and the like) but not dive into sub-directories. If you have an idea on how to add this, please share it via pull request and/or the issue threads. Don't forget: the Web UI would also need an option to add either "play content only" or "play subdirs, too".
Hi @MiczFlor
coming back to this feature request, would it make sense to model this via the "playlist" functionality already present? So for instance, one could already add all relevant files via the existing ui to the current playlist. The two only things which would be missing are
1) a way to persist the playlist by saving it like with other media players 2) a new hook for the card reader where you could assign a saved playlist to the cards (instead of folders)
Sorry, I am not a software engineer, so I can't contribute this in form of a pull request.
Regards Daniel
Hi @driebe, could you open a new feature request?
Comments in already closed issues get overlooked easily.
I have organized my files in the following way:
Each subfolder (eg.
Subfolder A
,Subfolder B
, ...) got its own card ID and its playing the correct file.Folder A
also got a card ID but does not play File A to C. Is that possible and how can i got it working? Playing is possible if i start it through webui.