Not sure if this will be usefull to anyone, but i created a simple dos batch script to create folder for my movies based on the movie file name, then it moves the movie into the folder. just one less step to do after ripping the video with handbrake. I know that this isn't exactly linked to the simple rss jukebox, but since the movies need to be in folders with the movie name, i thought it might be helpful in this thread
::This script looks for files with mkv extention in my movie folder
::Then it create a folder with the same name as the movie and copies
::the movie to this new folder.
FOR /F "tokens=1-2 delims=." %%i IN ('DIR /A:-D /B /O:N "z:\My Media\Movies\*.mkv"') DO (
MD "z:\My Media\Movies\%%i"
MOVE /Y "z:\My Media\Movies\%%i.%%j" "z:\My Media\Movies\%%i\%%i.%%j"
This will need to be copied into a text file and the extention will have to be named to .bat
also i'm only searching for mkv files since thats what I use, but you can just change the extention to search for, or the path.
I have mini NAS (Gearbox) with attached HDD(there is the part of my movies located under folder PUBLIC ).
Folder's user ID is Guest, no password.
How should look the actual path for Simple RSS jukebox ?
Should I mention somewhere NAS IP address and user ID with no password ?
then /tmp/ramfs/volumes/NAS_IP_address/PUBLIC -o user=Guest,password=0/Movies/jukebox.rss ???
something wrong in my path because it doesn't work for me
thanks in advance for your help
Last edited by jurijz; 06-16-2011 at 12:29 PM.
http://tinyurl.com/3ox4q6j and then to use that mount point in the movie jukebox. Note that if you mount it at the same place as where your other movies currently resides then you will be able to use the same jukebox as your main one. For example assuming that your movies reside on an external USB on the directory
You could create a directory /tmp/usbmounts/sdb1/Movies/network/
Now you could mount your network public directory onto that directory "/tmp/usbmounts/sdb1/Movies/network/" using the procedure explained at the link.
Note that you should make sure that the USB Drive itself is mounted before you attempt to mount you network public directory. This can be accomplish using a small script or just adding a "sleep 60" command in the /usr/local/etc/rcS before issuing the mount command for the network. That would gave you 1 minute for everything to settle before you mount the public directory. A script is more efficient and I can help with that once you decide exactly what you want to do.
The beauty of all this is that when you issue the command: "./jukebox_update.sh -p /tmp/usbmounts/sdb1/Movies" all the movies/videos on your NAS will get included all in the same jukebox.
Anyhow let me know how far you can go with that by yourself and ask for help when needed. Note that the example given in the link uses a different mount point than what I am suggesting so you will have to adapt the mount command accordingly.
I had decided for the first to make Simple Jukebox on my second PBO work with mini NAS.
I'd like to remind that I have PUBLIC folder on my mini NAS (Gearbox) with subdirectory Movies inside.
PBO connected to the router through Patriot Wi-Fi N adapter
If I've got it right, I have to do the following steps :
# vi /usr/local/etc/rcS, and create new directory
# mkdir -p /tmp/ramfs/volumes/PUBLIC/Movies
# mount -t cifs //192.168.0.136/PUBLIC/Movies -o username=Guest /tmp/ramfs/volumes/PUBLIC/Movies
Then I use actual path to update new directory by Simple Jukebox :
/usr/local/etc/srjg/jukebox_update.sh -i -p /tmp/ramfs/volumes/PUBLIC/Movies
if subdirectory Movies under PUBLIC directory on NAS looks doubtfully then I could move all my movies just to PUBLIC and remove subdirectory Movies
Please let me know if something wrong
thanks in advance
Last edited by jurijz; 06-17-2011 at 11:35 AM.
Since you are mounting it on ramfs the sleep 60 is not required. If you have issues with the mount then you can try sleep 5 but I think you will be ok without any but it all depends how your NAS is access wireless/Ethernet. I have a little script that I use to use to make sure that the IP address is available before the mount is executed. It basically just ping the NAS IP address until it is successful then mount the NAS share. I'll look for it and post it here .... don't feel like reinventing the well right now.
Here the script to make sure that your NAS and PBO are ready to be mounted.
Just copy and paste and rename something like nasmount.sh and copy to your /usr/local/etc/ directory. Also make sure that the file is executable by issuing the following command:Code:#!/bin/sh # Set timeout to the number of times you want the loop to repeat TIMEOUT=20 # Create the mount point directory mkdir -p /tmp/ramfs/volumes/public # Change this to your PBO mount point # While we haven't used up all the attempts while [ $TIMEOUT -gt 0 ]; do # this will be true if 'ping' gets a response if ping 192.168.2.2; then # Change this to your NAS IP address mount -t cifs //192.168.2.2/public -o username=Guest /tmp/ramfs/volumes/public echo "NFS mounted" TIMEOUT=0 # and if there's no response... else TIMEOUT=$((TIMEOUT - 1)) if [ $TIMEOUT -eq 0 ]; then echo "NFS Failed to mount - no response to server pings" fi fi done
Now you can just call this script from your rcS file by adding at the end of the rcS file the following.Code:chmod +x nasmount.sh
The script uses a TIMEOUT value of 20. This gives it about 40 to 60 seconds to make the mount before it give up and exit because the PBO wireless/network is not ready or your NAS is not ready. If it quits before it is ready and need more time just increase the value of TIMEOUT. Also change the IP being ping to your NAS IP and of course you will need to change the mount and mkdir commands to match your specific paths.Code:/usr/local/etc/nasmount.sh &
Hope this is helpful to you and others.