Author Topic: How To - PVD, Kroozbox and Trailer Files for NMT  (Read 11849 times)

0 Members and 1 Guest are viewing this topic.

Offline Banta67

  • Member
  • *
  • Posts: 13
    • View Profile
How To - PVD, Kroozbox and Trailer Files for NMT
« on: April 19, 2009, 01:18:01 am »
Hello Again,

I'd like to thank Nono and Bugman72 for thier guidance in helping me get this set up.

The Goal.
I would like to have a Link to my Trailer Files show in NMT through Kroozbox.

The Problem.
Due to the WAF, I cannot have Trailer links on movies that I don't have trailers for. The link can only appear if I have specified a trailer file.

The Sollution.
Read on. This works for both ISO/VIDEO_TS Trailer files, and other files such as QT .MOV, if you want. It is important that, if you want to use VIDEO_TS or ISO files, you have already set up your systems to work with VIDEO_TS and ISO.  I think some dufus wrote a How-To on that topic if you need it.  ;D

For this to work as described, you will need the latest PVD Beta (0.9.9.5 at the time of this How-To)  If you don't want to change your PVD version, you can still do this, see notes at end of the How-To.

Let get started!

Back up everything.
We will again work on our High Definition template filed located in templates\PVDTemplate-HD\

Open the file...
globalParam.properties

To Enable TRAILERS for NON ISO or VIDEO_TS files do the following.


Step 1 a).
Copy and then Paste directly benieth it, the following lines.....

# This is the default wrapper for all link that are not tie to any extension
PVD-MediaLinkStart = <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="&media=
PVD-MediaLinkEnd = " TVID="Play" name="nextlink" vod><img src="images/PlaySmall.png" onfocussrc="images/PlaySmallHi.png" style="vertical-align:middle;" align="middle">&nbsp;&nbsp;<!--TITLE-S--><!--KROOZCOUNTERCONDITIONAL--></a></td></tr>


Step1 b).
In the code you just pasted...Change
PVD-MediaLinkStart =
to
PVD-TrailerLinkStart =
and also change...
PVD-MediaLinkEnd =
to
PVD-TrailerLinkEnd =

Step1 c).
in the line that starts with PVD-TrailerLinkEnd, find ...
<!--TITLE-S--><!--KROOZCOUNTERCONDITIONAL-->
and replace it with
<B>PLAY&nbsp;TRAILER<!--KROOZCOUNTERCONDITIONAL--></B>

The new section will look like this when you are done...

# This is the default wrapper for all TRAILER links that are not tie to any extension
PVD-TrailerLinkStart = <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="&media=
PVD-TrailerLinkEnd = " TVID="Play" name="nextlink" vod><img src="images/PlaySmall.png" onfocussrc="images/PlaySmallHi.png" style="vertical-align:middle;" align="middle">&nbsp;&nbsp;<B>PLAY&nbsp;TRAILER<!--KROOZCOUNTERCONDITIONAL--></B></a></td></tr>


Next Do the same for the ISO and VIDEO_TS Trailer files

Step2 a).
Copy and then paste directly beneath it the following lines.....

# For ISO link going through SMB share - [myShare] value will be reaplce by what is specified above
PVD-MediaLinkStartForISO = <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/[MyShare]/
PVD-MediaLinkEndForISO = " zcd="2" TVID="Play" name="nextlink" vod><img src="images/PlaySmall.png" onfocussrc="images/PlaySmallHi.png" style="vertical-align:middle;" align="middle">&nbsp;&nbsp;<B>PLAY - &nbsp; <!--TITLE-S--><!--KROOZCOUNTERCONDITIONAL--></B></a></td></tr>


Now Paste them directly below them to create a duplicate set ( we will alter the pasted code) ...

Step2 b).
Change
PVD-MediaLinkStartForISO =
to
PVD-TrailerLinkStartForISO =
and also change...
PVD-MediaLinkEndForISO =
to
PVD-TrailerLinkEndForISO =

Step2 c).
in the line that starts with PVD-TrailerLinkEndForISO, find...
<!--TITLE-S--><!--KROOZCOUNTERCONDITIONAL-->
and replace it with
<B>PLAY&nbsp;TRAILER<!--KROOZCOUNTERCONDITIONAL--></B>
The new section will look like this when you are done...

# TRAILER For ISO link going through SMB share - [myShare] value will be reaplce by what is specified above
PVD-TrailerLinkStartForISO = <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/[MyShare]/
PVD-TrailerLinkEndForISO = " zcd="2" TVID="Play" name="nextlink" vod><img src="images/PlaySmall.png" onfocussrc="images/PlaySmallHi.png" style="vertical-align:middle;" align="middle">&nbsp;&nbsp;<B>PLAY&nbsp;TRAILER<!--KROOZCOUNTERCONDITIONAL--></B></a></td></tr>



Save and close the file
globalParam.properties

-------------------------------------------------------------------------------------

Step3 a).
Now, open the file templates\PVDTemplate-HD\html\MovieDetail-10.html and save it as templates\PVDTemplate-HD\html\MovieDetail-11.html
Close templates\PVDTemplate-HD\html\MovieDetail-11.html

Step3 b).
Now, open the file templates\PVDTemplate-HD\html\MovieDetail-9.html and save it as templates\PVDTemplate-HD\html\MovieDetail-10.html, overwriting the original.

Step3 c).
in the file MovieDetail-10.html, find the following....
REQUEST=SELECT "MOVIES".* FROM "MOVIES" WHERE "MOVIES"."mid"=[parentref] AND "MOVIES"."epid" IS NULL

and change it to...

REQUEST=SELECT FIRST 1 "CUSTOM_VALUES_SHORTSTR"."value", "MOVIES"."mid" FROM "CUSTOM_VALUES_SHORTSTR" INNER JOIN "MOVIES" ON "MOVIES"."mid" = "CUSTOM_VALUES_SHORTSTR"."mid" WHERE "MOVIES"."mid" = [parentref]


Step3 d).
Next Find...
#For all links except ISO define below
MEDIAHTTPLOCATIONSTART= [PVD-MediaLinkStart]
MEDIAHTTPLOCATIONEND= [PVD-MediaLinkEnd]
# For ISO link and VIDEO_TS
MEDIAHTTPLOCATIONSTART,ISO=[PVD-MediaLinkStartForISO]
MEDIAHTTPLOCATIONEND,ISO=[PVD-MediaLinkEndForISO]
MEDIAHTTPLOCATIONSTART,=[PVD-MediaLinkStartForISO]
MEDIAHTTPLOCATIONEND,=[PVD-MediaLinkEndForISO]
MEDIAHTTPLOCATION=path

and change it to....

#For all links except ISO TRAILERS define below
MEDIAHTTPLOCATIONSTART= [PVD-TrailerLinkStart]
MEDIAHTTPLOCATIONEND= [PVD-TrailerLinkEnd]
# For ISO link and VIDEO_TS TRAILERS
MEDIAHTTPLOCATIONSTART,ISO=[PVD-TrailerLinkStartForISO]
MEDIAHTTPLOCATIONEND,ISO=[PVD-TrailerLinkEndForISO]
MEDIAHTTPLOCATIONSTART,=[PVD-TrailerLinkStartForISO]
MEDIAHTTPLOCATIONEND,=[PVD-TrailerLinkEndForISO]
MEDIAHTTPLOCATION=value


Save and close the file.

Guess what, your done modyfying Kroozbox!

Now we will make some changes to Personal Video Database.
Again, for this step you will need the latest PVD Beta which was 0.9.9.5 at the time of this writing.
BACK UP YOUR DATABASE BEFORE YOU UPGRADE - Save a copy in a safe place. ( Just in case )

After you have the latest version, do the following in PVD...

Step4 a).
go to TOOLS>PREFERENCES
on the left choose
MOVIES>CUSTOM ITEMS
then, in the NAME text field at the bottom type:
Trailer Path:
and set a TYPE in the drop down to
SHORT TEXT
Click ADD and you should see the new setting in the preferences box.
Select OK to exit the Preferences Dialog.

Step4 b).

Now, edit a movie and put in the path to a trailer in the new Trailer Path field.

Step4 c).
Restart Kroozbox and navigate to the web interface. You probably know how to load the web interface into a browser by now but, if you don't, put..

http://192.168.1.122:9008

Into your browser address bar and hit enter. YOU MUST REPLACE THE IP ADDRESS WITH YOUR OWN.
To find what IP address Kroozbox is using, look in the DOS box that loads when you run STARTUP.BAT for...


[Kroozbox PVD Movie Jukebox HD] Service: Kroozbox PVD Movie Jukebox HD - startin
g HTTP server on: 192.168.1.122:9008


That will give you your IP address.  If all went well you will have a trailer link with your movie listing.


NOTES....
Now if you don't want to upgrade to the latest Beta of PVD, you can still do this.
Just alter the steps...
Skip Step3 c).
in Step3 d) use MEDIAHTTPLOCATION=features instead of MEDIAHTTPLOCATION=value
Skip Step4 a).
in Step4 b)., Put your trailer path in the Features Field, which already exists.

That should do it too!

I really hope that helps others who might be interested in adding the trailer files to thier listings. I was really happy to see that the latest version of PVD allowed for CUSTOM FIELDS! ROCK!!!
I am going to ask the developer to add FILE PATH to the available options for custom fields. This way, selecting the trailer path will be just like selecting the movie path. I will then bug Nono to help me figure out how to use that path in place of
MEDIAHTTPLOCATION=value  ;)

Again, A BIG THANKS to the developers of both PVD and Kroozbox! You are the best!

If I have jacked up any of this, please let me know and I will correct my errors.

GO WINGS!!!!
Banta67

Offline MARKRONSON

  • Member
  • *
  • Posts: 2
    • View Profile
Re: How To - PVD, Kroozbox and Trailer Files for NMT
« Reply #1 on: October 23, 2019, 08:57:10 pm »
First thing, you need to access your WiFi router by locating the IP address of your router. Most of the time it is either 192.168.0.1 or 192.168.1.1. However, if you need to figure out the IP, here's how: In Windows you will need to load up a command prompt and enter ipconfig.