2010-12-14, 04:13
Videos
Trivia
Slide XMLs
These are important files when using quizzes. They allow the quizzes to follow the proper order: Question -> Clue -> Answer or Question -> Answer(depending on how they need to flow)
<slide rating=> - allows the ability to specify a 'age' rating similar to movies, this can be used to match the rating of the movie being played or to set a limit on which slides are played based on value set in the Settings)
<question format= /> - provides the format that matches slides as a question slide
<clue format= /> - provides the format that matches slides as a clue slide
<answer format= /> - provides the format that matches slides as an answer slide
Breakdown of ".([0-9]{1,3})+_q.jpg"
. <- provides matching of any alpha characters(letters) ie: matches "stills" in "stills20_q.jpg"
([0-9]{1,3}) <- provides matching of any number from 0 - 999 ie: matches "20" in "stills20_q.jpg"
+_q <- allows the script to determine if it is a question ie: "stills20_q.jpg" is a question, but "stills20_c" is not.
^ this can be any letter or combination of letters as long as the pattern is kept. For example:
<question format=".([0-9]{1,3})+a.jpg" /> - the question
<clue format=".([0-9]{1,3})+b.jpg" /> - the clue
<answer format=".([0-9]{1,3})+c.jpg" /> - the answer
The next example of a slides.xml is for a two part trivia question(question and answer):
If your Q&A do not have any ordering numbers (ie slide1_q, the 1 is the ordering number) just use the following:
This works for the Screenshot Shot Quiz( Pack 0.1 and Pack 2 0.2 Alpha) contained in one or more of the stills pack available for download.
Trailer videos
Trailer Scraper(found in Settings)
Modes:
- Apple Movie Trailers (database)
Uses the Apple Movie Trailers Video Addon(not Lite) to find and then streams the trailers
- Apple Movie Trailers (newest)
Requests the newest trailers from Apple Movie Trailers(the site) and then streams the trailers
- Local Folder
Selects trailers from your downloaded trailers(which can be obtained many different ways) and plays the trailers
Local Folder(downloaded trailers)
The saved video files used for trailers need to have "-trailer" as part of the file name. For example:
The Girl Who Kicked the Hornet's Nest-trailer.mov
Trailer .nfo sample - for Local Folder to match genre/rating
Trivia
Slide XMLs
These are important files when using quizzes. They allow the quizzes to follow the proper order: Question -> Clue -> Answer or Question -> Answer(depending on how they need to flow)
PHP Code:
<slides>
<slide>
<slide rating="R">
<question format=".([0-9]{1,3})+_q.jpg" />
<clue format=".([0-9]{1,3})+_c.jpg" />
<answer format=".([0-9]{1,2})+_a.jpg" />
</slide>
</slides>
<slide rating=> - allows the ability to specify a 'age' rating similar to movies, this can be used to match the rating of the movie being played or to set a limit on which slides are played based on value set in the Settings)
<question format= /> - provides the format that matches slides as a question slide
<clue format= /> - provides the format that matches slides as a clue slide
<answer format= /> - provides the format that matches slides as an answer slide
Breakdown of ".([0-9]{1,3})+_q.jpg"
. <- provides matching of any alpha characters(letters) ie: matches "stills" in "stills20_q.jpg"
([0-9]{1,3}) <- provides matching of any number from 0 - 999 ie: matches "20" in "stills20_q.jpg"
+_q <- allows the script to determine if it is a question ie: "stills20_q.jpg" is a question, but "stills20_c" is not.
^ this can be any letter or combination of letters as long as the pattern is kept. For example:
<question format=".([0-9]{1,3})+a.jpg" /> - the question
<clue format=".([0-9]{1,3})+b.jpg" /> - the clue
<answer format=".([0-9]{1,3})+c.jpg" /> - the answer
The next example of a slides.xml is for a two part trivia question(question and answer):
PHP Code:
<slides>
<slide>
<slide rating="R">
<question format=".([0-9]{1,3})+_q.jpg" />
<clue format="N/A" />
<answer format=".([0-9]{1,2})+_a.jpg" />
</slide>
</slides>
If your Q&A do not have any ordering numbers (ie slide1_q, the 1 is the ordering number) just use the following:
PHP Code:
<slides>
<slide>
<slide rating="G">
<question format=".+_a.jpg" />
<clue format="N/A" />
<answer format=".+_b.jpg" />
</slide>
</slides>
Trailer videos
Trailer Scraper(found in Settings)
Modes:
- Apple Movie Trailers (database)
Uses the Apple Movie Trailers Video Addon(not Lite) to find and then streams the trailers
- Apple Movie Trailers (newest)
Requests the newest trailers from Apple Movie Trailers(the site) and then streams the trailers
- Local Folder
Selects trailers from your downloaded trailers(which can be obtained many different ways) and plays the trailers
Local Folder(downloaded trailers)
The saved video files used for trailers need to have "-trailer" as part of the file name. For example:
The Girl Who Kicked the Hornet's Nest-trailer.mov
Trailer .nfo sample - for Local Folder to match genre/rating
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<movieinfo id="5961">
<title>A Good Day to Die Hard</title>
<quality>1080p</quality>
<runtime>2:30</runtime>
<releasedate>2013-02-14</releasedate>
<mpaa>R</mpaa>
<genre>Action and Adventure</genre>
<studio>20th Century Fox</studio>
<director>John Moore</director>
<cast></cast>
<plot>Iconoclastic, take-no-prisoners cop John McClane, for the first time, finds himself on foreign soil after traveling to Moscow to help his wayward son Jack, unaware that Jack is really a highly-trained CIA operative out to stop a nuclear weapons heist. With the Russian underworld in pursuit, and battling a countdown to war, the two McClanes discover that their opposing methods make them unstoppable heroes.</plot>
<thumb>/media/hte_files/Trailers/agooddaytodiehard-tlr2_h720p-trailer.tbn</thumb>
</movieinfo>