It is currently May 19th, 2013, 5:07 am 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 aasoror » July 31st, 2012, 12:05 am

jsmiddleton4 » July 31st, 2012, 4:00 am wrote:I point SRJG to sda1.......

It should read sda1/AIOSMovies and sda1/NASMovies and build the jukebox.


Yup :)
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: 8412
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 31st, 2012, 12:32 am

NFS shares work fine.

So this is the setup for having multiple types of drives?

Internal drive needs to be EXT3 so linux links can be utilized.

Links for NAS drives have to point to the HDD.

SRJG pointed to sda1, or the hard drive designation.

If the movies that are on the HDD need to be available for NFS shares so that users who prefer that simple wall interface and have TV Shows that you want to have simple wall like effect than you link the hard drive to a NFS share and a Television show hard drive to nfs shares.

SRJG can and does work for Television shows. Its just that the setup for episodes, etc., is much more time consuming.

Would like some others to test it before a simple FAQ can be made for "How to...". I'm thinking the application where folks have both types of drives is probably common enough for a sticky.

Wonder how it works for an external USB drive?

I really have to get to bed. If you are on FB you can see my day here:

https://www.facebook.com/media/set/?set ... 163&type=1
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 31st, 2012, 7:43 am

Snappy had a chance to get back to me for a brief note. We were talking about building multiple srjg juke boxes instead of one big one with all the links. This is what he said:

"You need to rebuild you Database when you change that option; with "no" selected SRJG will create a SRJG directory where your movies are located and put the Database there. This allows you to have more than just one SRJG on your player and they won't interfere with each other. If "yes" is selected then the database will be installed in the /usr/local/etc/ directory; if you have another SRJG for another drive each database would overwrite each other on jukebox update. Hope this is making sense to you."

Don't we need the extra srjg's on the main screen though? So multiple srjg icons to choose from, each icon with its config creating database built in the relevant directory? I see no way that I can tell srjg that tells it to have multiple juke boxes.

If so and it is just a matter of having multiple jukeboxes listed on the main menu wonder how they can be named so we know which jukebox we're using, like one for Movies, one for Television shows, and how we would have a setup screen to have the option to tell the AIOS to display 1, 2, 3, etc., SRJG's?

It is possible to have multiple juke boxes however.

I let Snappy know that we figured out how to do the links so NAS and internal hard drives can be seen by srjg to build a common jukebox.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » July 31st, 2012, 8:12 am

jsmiddleton4 » July 31st, 2012, 11:43 am wrote:Don't we need the extra srjg's on the main screen though? So multiple srjg icons to choose from, each icon with its config creating database built in the relevant directory? I see no way that I can tell srjg that tells it to have multiple juke boxes.

What he means is just keep single DB set to no, and every time you want to load a jukebox then change the "movie folder" manually.
If so and it is just a matter of having multiple jukeboxes listed on the main menu wonder how they can be named so we know which jukebox we're using, like one for Movies, one for Television shows, and how we would have a setup screen to have the option to tell the AIOS to display 1, 2, 3, etc., SRJG's?

Without changing the SRJG coding to allow that initial screen this would mean recopying the whole SRJG module for each jukebox which is a big no-no.
The solution is to add an initial screen similar the original jukebox, to allow addition of multiple entries and each entry would end up changing the "movie folder" appropriately.
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: 8412
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 31st, 2012, 12:01 pm

"would mean recopying the whole SRJG module for each jukebox which is a big no-no."

Why would making one additional srjg for Television shows be a problem?

SRJG code isn't that extensive so the task of having another srjg module named srjg1 along with srjg doesn't seem like that big of a challenge.

Then from the main AIOS menu of a jukebox for movies, a jukebox for TV shows.

Yes it would be easier for the GUI and end users to have the option once go into SRJG so you can select TV Shows or Movies. Then those choices would lead you to the jukebox accordingly. I'm thinking though other then some minor tweaks snappy doesn't have time to do a large rewrite. If we could accomplish the same end by doing a little creative folder setups, etc., why not?
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: Using SRJG without network?

Postby AtTheBeach » August 4th, 2012, 11:19 am

Edit to state the question up front: Does anyone know of an open port that mimics localhost behavior and/or how to open such a port if it isn't already?

Blabbering background below:
So I spent a Saturday a few weeks ago digging into the SRJG cgi scripts, my AIOS isn't network attached now so I'll re-lookup file names if anyone cares. It isn't light reading, but it's verbose enough to weed my way through. During logging in and out of the AIOS, my router was bricked. I don't know if it was related to root w/no pw and I haven't gone to the website to generate an encryption (seems unsecure).

Anyway, the SRJG generation script is littered w/localhost references as aasoror suspected. That explains why db generation occurs while not network connected. The SRJG main movie wall script however uses the port listed in srjg.cfg. That port is displayed on the main SRJG config screen (upper right corner) but cannot be changed there. It defaults to 80 (which I think is why it demands a network connection thinking internet). The wiki states the cfg file can be manually changed to whatever port you want and listed a 2nd common port (I tried that and failed also). Note: the cfg file in the SRJG directory is a decoy, changing that file nets no change, it's only when you read the readme file you learn the real cfg file is one directory higher. ;)

I tried all the ports that are listed as some sort of "local" under official/unofficial tcp/udp port standards as well as some random ports. All failed with the only change being the error screen that flashes too fast to read sometimes changed from the beginning of the "thinking" part of SRJG's attempt to the end of the ~30 seconds of thinking. The error message also appeared to change but that's a guess. I even tried defining the port as varieties of 127.0.0.1 I found in the generation script which may have been the only flip in error screens?!

Knowing these are networking/linux questions and not AIOS specific, does anyone know of an open port that mimics localhost behavior and/or how to open such a port if it isn't already?

Note: newegg has these little gems for $10 off today/tomorrow and there's a rebate of $30 this month making it almost free to pickup a spare. Not that I'm selling them.
Last edited by AtTheBeach on August 4th, 2012, 3:54 pm, edited 1 time in total.
AtTheBeach
Curious
 
Posts: 23
Joined: July 16th, 2012, 2:18 pm

Re: Using SRJG without network?

Postby aasoror » August 4th, 2012, 11:44 am

AtTheBeach » August 4th, 2012, 3:19 pm wrote:I even tried defining the port as varieties of 127.0.0.1 I found in the generation script which may have been the only flip in error screens?!

So you are saying while AIOS.REAL.IP.ADDRESS:80 is working yet 127.0.0.1:80 (and localhost:80) is not ?
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: 8412
Joined: September 26th, 2011, 4:18 pm

Re: Using SRJG without network?

Postby AtTheBeach » August 4th, 2012, 12:18 pm

aasoror » August 4th, 2012, 11:44 am wrote:So you are saying while AIOS.REAL.IP.ADDRESS:80 is working yet 127.0.0.1:80 (and localhost:80) is not ?


Sorry, this goes back to a prior post of mine. The problem is, if the AIOS is not network attached, SRJG hangs for about 30 seconds when trying to build the movie wall, fails and goes back to the menu.

Yes, real.ip.address:80 works when attached (I'm not normally attached). I have to go back and test this to confirm. I think I tried setting the port to "127.0.0.1:80" in one of my many attempts (I did not try "localhost:80" if you're suggesting that, but I will). It seems I can only set the "80" in the cfg file and I'm not sure how it's filling in the ip address (if not network attached), but I'll retry the above 2 and report back.
AtTheBeach
Curious
 
Posts: 23
Joined: July 16th, 2012, 2:18 pm

Using SRJG without network?

Postby AtTheBeach » August 4th, 2012, 3:49 pm

Setting the port to 127.0.0.1:80 or localhost:80 both result in longer "thinking" (~60 seconds) and a different error message flashed quickly towards the end of the think with it ending back at the menu item.

Setting the port to any number, and I randomly went into the 50,000s, appears to result in ~30 seconds of thinking with a quick error message (appears to be "no network found" or similar) at the beginning of the think. I also noticed if I was not network attached and the port number wasn't 80, I had the same thinking/error message going into the config screen. If the port is 80, I can view the config screen.

Unfortunately there is no ip field listed in the srjg.cfg file and the wiki specifically states there are 2 fields you need to modify by editing the cfg file, port and something unrelated to the address. I even tried to add an IP_Address field and set it to localhost or 127... there.

Edit: I realize IP_Address won't work as the scripts aren't looking for any field like that. So yes aasoror, real ip address:80 works when network is present; localhost:80 or 127.0.0.1:80 doesn't and/or isn't easily configured by me. I now see the config files/scripts are nested throughout the entire directory structure and it's beyond me as to where real ip address is being introduced. But 127.0.0.1 is working for the db generation script so localhost is functional.
AtTheBeach
Curious
 
Posts: 23
Joined: July 16th, 2012, 2:18 pm

Using SRJG without network?

Postby AtTheBeach » August 5th, 2012, 4:54 pm

Just to close this, I finally saw issues over at the SRJG wiki and submitted an improvement request to allow 127.0.0.1 usage for non networked machines, and/or share where real IP address is set. I'll share if/when they respond in case anyone else has the same issue.
AtTheBeach
Curious
 
Posts: 23
Joined: July 16th, 2012, 2:18 pm

PreviousNext

Return to AIOS Guides & Tips

Who is online

Users browsing this forum: No registered users and 2 guests