It is currently May 23rd, 2013, 10:23 pm Advanced search

SRJG Movie Jukebox for the AIOS

Product usage Guides and Tips.. see what you are missing!

Re: SRJG Movie Jukebox for the AIOS

Postby gates » October 25th, 2012, 5:14 pm

jsmiddleton4 wrote:So along with suggestions to change code it is also a good idea to show an example of your nfs script so people can see where or how you are pointing to your file storage.


OK here is my f02nas1.sh file:

#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

NFS_DIR="/tmp/nfs"
VOL_DIR="/tmp/ramfs/volumes"

NAS1_IP="192.168.0.184"
NAS1_SHARE="Volume_1"
NAS1_MEDIA_FOLDER1="My Videos"
NAS1_MEDIA_FOLDER2="My Music"
NAS1_MEDIA_FOLDER3="My Pictures"
MOUNT_NAS1_SHARE="NAS1"
MOUNT_NAS1_MEDIA_FOLDER1="Movies1"
MOUNT_NAS1_MEDIA_FOLDER2="Music"
MOUNT_NAS1_MEDIA_FOLDER3="Pictures"

NAS2_IP="192.168.0.186"
NAS2_SHARE="Volume_1"
NAS2_MEDIA_FOLDER1="My Movies"
MOUNT_NAS2_SHARE="NAS2"
MOUNT_NAS2_MEDIA_FOLDER1="Movies2"

NAS3_IP="192.168.0.188"
NAS3_SHARE="Movies3"
NAS3_MEDIA_FOLDER1="My Movies3"
MOUNT_NAS3_SHARE="NAS3"
MOUNT_NAS3_MEDIA_FOLDER1="Movies3"

NAS4_IP="192.168.0.193"
NAS4_SHARE="MyMovies4"
NAS4_MEDIA_FOLDER1="Movies4"
MOUNT_NAS4_SHARE="NAS4"
MOUNT_NAS4_MEDIA_FOLDER1="Movies4"

# Create nfs mount folder if not present
mkdir -p $NFS_DIR
# COPY THIS BLOCK FOR EVERY SERVER YOU WANT TO LINK TO
######################################################
TIMEOUT=20
mkdir -p $VOL_DIR/$MOUNT_NAS1_SHARE
while [ $TIMEOUT -gt 0 ]; do
if ping $NAS1_IP; then
mount -t cifs //$NAS1_IP/$NAS1_SHARE -o rw,iocharset=utf8,username= $VOL_DIR/$MOUNT_NAS1_SHARE
ln -s $VOL_DIR/$MOUNT_NAS1_SHARE/$NAS1_MEDIA_FOLDER1 $NFS_DIR/$MOUNT_NAS1_MEDIA_FOLDER1
ln -s $VOL_DIR/$MOUNT_NAS1_SHARE/$NAS1_MEDIA_FOLDER2 $NFS_DIR/$MOUNT_NAS1_MEDIA_FOLDER2
ln -s $VOL_DIR/$MOUNT_NAS1_SHARE/$NAS1_MEDIA_FOLDER3 $NFS_DIR/$MOUNT_NAS1_MEDIA_FOLDER3
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################

TIMEOUT=20
mkdir -p $VOL_DIR/$MOUNT_NAS2_SHARE
while [ $TIMEOUT -gt 0 ]; do
if ping $NAS2_IP; then
mount -t cifs //$NAS2_IP/$NAS2_SHARE -o rw,iocharset=utf8,username= $VOL_DIR/$MOUNT_NAS2_SHARE
ln -s $VOL_DIR/$MOUNT_NAS2_SHARE/$NAS2_MEDIA_FOLDER1 $NFS_DIR/$MOUNT_NAS2_MEDIA_FOLDER1
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done

##########################################################
TIMEOUT=20
mkdir -p $VOL_DIR/$MOUNT_NAS3_SHARE
while [ $TIMEOUT -gt 0 ]; do
if ping $NAS3_IP; then
mount -t cifs //$NAS3_IP/$NAS3_SHARE -o iocharset=utf8,username=(user),password=(pass) $VOL_DIR/$MOUNT_NAS3_SHARE
ln -s $VOL_DIR/$MOUNT_NAS3_SHARE/$NAS3_MEDIA_FOLDER1 $NFS_DIR/$MOUNT_NAS3_MEDIA_FOLDER1
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done

##########################################################
TIMEOUT=20
mkdir -p $VOL_DIR/$MOUNT_NAS4_SHARE
while [ $TIMEOUT -gt 0 ]; do
if ping $NAS4_IP; then
mount -t cifs //$NAS4_IP/$NAS4_SHARE -o iocharset=utf8,username=(user),password=(pass) $VOL_DIR/$MOUNT_NAS4_SHARE
ln -s $VOL_DIR/$MOUNT_NAS4_SHARE/$NAS4_MEDIA_FOLDER1 $NFS_DIR/$MOUNT_NAS4_MEDIA_FOLDER1
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done

##########################################################

IFS=$SAVEIFS


aasoror wrote:You should consider contributing the fixes to the SRJG project, I know they wouldn't be crazy about fix no 2 (would rather fix the sql query than trash it), but the fixes sure gets the job done.


Actually, it's not the query that's the problem. I must have serveral bad NFO files from the thumbgen output that the query is picking-up. I need to re-apply these manually with thumbgen. I merely found a quick way to make it useful until I re-process some of my movie output folders. Also, I'm not so sure that I want an unlimited number of genres from a query so that every single movie is covered. The baseline genres cover 98% so let the others fall into unknown.
gates
 
Posts: 7
Joined: October 20th, 2012, 4:22 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » October 25th, 2012, 5:41 pm

I think you win the fa****.sh file award. Man. That's extensive.

I started using manual searches in Thumbgen to stop having weird results. I also use NFO Edit when I don't want to re-run Thumbgen to clean up the NFO files.

As you noted SRJG only reads what Thumbgen generates.

However with SRJG the key concept is "Simple". Having the SRJG code make it easier, or simpler, to obtain reliable and consistent results is in synch with its intent.

This is my simple *.sh file. I have NAS drives and HDD. I don't want SRJG to add TV shows to the jukebox BUT I want the AIOS to find the TV shows via NFS through File on the AIOS menu. My symlinks live on the internal HDD.

#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

# Create nfs mount folder if not present
mkdir -p /tmp/nfs

######################################################
TIMEOUT=20
mkdir -p /tmp/nfs/TV_Shows
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/nfs/TV_Shows
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done

##########################################################

##########################################################
TIMEOUT=20
mkdir -p /tmp/usbmounts/sda1/NASMovies
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.20; then
mount -t cifs //192.168.2.20/Movies -o ro,username= /tmp/usbmounts/sda1/NASMovies
ln -s /tmp/usbmounts/sda1/NASMovies /tmp/nfs/NASMovies
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################

ln -s /tmp/usbmounts/sda1/AIOSMovies /tmp/nfs/AIOSMovies

IFS=$SAVEIFS

__________________________________

I point SRJG to /tmp/usbounts/sda1

What do you point SRJG to?
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » October 25th, 2012, 5:51 pm

"they are querying the genres from a database table"

The SRJG code also creates that database prior to the query as that's where it assigns the movie names to the genre categories.

movie.db located based on what you tell SRJG in terms of single database, etc.
Last edited by jsmiddleton4 on October 25th, 2012, 6:05 pm, edited 1 time in total.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby gates » October 25th, 2012, 6:04 pm

I point SRJG to /tmp/nfs

Now i can use filemanager to easily browse all of my movies, pictures, music in one location.
Also, this enables many movie sources being scanned by SRJG with my modifications.
gates
 
Posts: 7
Joined: October 20th, 2012, 4:22 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » October 25th, 2012, 6:07 pm

I use nfs file to point to all NAS drives, movies, TV shows, internal HDD, etc. SRJG to just have movie juke box. You can use SRJG to be a TV show Jukebox. Just takes more setup in terms of folders, etc.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby gates » October 29th, 2012, 7:52 pm

I would like to move the main menu to the left...in the same xpos as the config menu buttons.

There must be an xpos, offsetXPC or css tag which sets this position? I've tried a few with now visible change.

Anyone know how to re-align the SRJG Main Menu buttons?
gates
 
Posts: 7
Joined: October 20th, 2012, 4:22 pm

Re: SRJG Movie Jukebox for the AIOS

Postby gates » October 30th, 2012, 6:11 pm

SOLVED!

Nevermind.....I figured it out.

I've been playing with the images and colors a bit too:

Heres the original screen (french):

srjg_menu_principal.jpg
Original Menu
srjg_menu_principal.jpg (80.88 KiB) Viewed 295 times


This is my custom menu:

IMAG0092.jpg
Camera Menu with Left offset
IMAG0092.jpg (56.61 KiB) Viewed 295 times


Here you can see my new config menu:

IMAG0093.jpg
New Config screen
IMAG0093.jpg (63.46 KiB) Viewed 295 times


Now I'm working on the sub-menus....
gates
 
Posts: 7
Joined: October 20th, 2012, 4:22 pm

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » October 30th, 2012, 7:41 pm

gates » October 30th, 2012, 10:11 pm wrote:Now I'm working on the sub-menus....

Very well done gates, thanks for sharing.
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8451
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby Asmegin » November 14th, 2012, 2:41 pm

So I spend days setting up the Jukebox for my sisters Aios...and then I find out you need to be connected to a network to use the internal hard drive Jukebox?!?!?

She doesn't have internet so....I'm out of luck, right?

Man, I hate this media player :lol: :lol:
Asmegin
 
Posts: 5
Joined: November 12th, 2012, 9:36 am

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » November 14th, 2012, 2:51 pm

Asmegin » November 14th, 2012, 6:41 pm wrote:So I spend days setting up the Jukebox for my sisters Aios...and then I find out you need to be connected to a network to use the internal hard drive Jukebox?!?!?

She doesn't have internet so....I'm out of luck, right?

Man, I hate this media player :lol: :lol:


No you don't (that was already fixed in R21).
You only need internet connectivity if you are going to do autoscrapping.
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8451
Joined: September 26th, 2011, 4:18 pm

PreviousNext

Return to AIOS Guides & Tips

Who is online

Users browsing this forum: No registered users and 2 guests