Kodi Community Forum
[RELEASE] Home Theater Experience (Script) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Home Theater Experience (Script) (/showthread.php?tid=55628)



- huscoolcal - 2010-01-17

Question on the Dolby/DTS/Other folder - it works when i have one video in each, with multiple it gives me an error?


- mccorkled - 2010-01-17

huscoolcal Wrote:Question on the Dolby/DTS/Other folder - it works when i have one video in each, with multiple it gives me an error?

I am curious about this too


- mugencivic - 2010-01-17

mccorkled Wrote:The only problem I noticed was that what ever movie I picked, it goes over 2 movies and actually selects that one. Im sure it was discussed before but can I get some help?


Steveb Wrote:Remove <onclick>Action(Queue,25)</onclick>
form your DialogVideoInfo.xml

Hi,

i have the same problem.
Removing the line will not help.
Any Ideas?

Thanks


- arkryal - 2010-01-18

Awesome script. Perhaps one of you guys can help me with some issues I've had with the settings.

I'm having some trouble setting a manual path for trailers. I'll detail my efforts here and see if anyone can tell me what I'm doing wrong. I've read through all (yes all 44 pages) of this thread, and have seen a few people posting similar issues, but could not discern a solution from the responses. If anyone's figured it out, please let me know what you did.

My goal:
Have 50-100 Trailers downloaded to "T:\Trailers\" and have the Home Theater Experience Script load them from there.

Movie Settings:
Movie Trailers = 1
Coming Attractions intro = N/A
Coming Attractions outro = N/A
Trailer Play Mode = Stream
Trailer Scraper = Local Folder
Folder = T:\Trailers\

With these settings, nothing plays.

After checking the log I get the following:
Code:
Traceback(most recent call last):

FILE "C:\Users\Username\AppData\Roaming\XBMC\scripts\Home Theater Experience\resources\lib\xbmcscript_player.py", Line 55, in _init_mpaa = self._create_playlist()

FILE "C:\Users\Username\AppData\Roaming\XBMC\scripts\Home Theater Experience\resources\lib\xbmcscript_player.py", Line 133, in _create_playlist movie=movie

FILE "C:\Users\Username\AppData\Roaming\XBMC\scripts\Home Theater Experience\resources\lib\xbmcscript_player.py", Line 320, in _get_trailers trailers=Scraper.fetch_trailers()

FILE "C:\Users\Username\AppData\Roaming\XBMC\scripts\Home Theater Experience\resources\lib\scraper.py", Line 27, in fetch_trailers  
KeyError: 'trailer_path'

Let me preface this by saying: Python is not my language of choice. Below is just speculation and me talking out of my ass mostly, But I'll include it in case it can save anyone a few steps.

So I took a quick look at the "scraper.py" file. I can't find where "trailer_path" is defined, there or in the accompanying files. I do see several references to "trailer_folder" in the "settings.xml". "trailer_folder" seems to contain the drive letter as well, so it is a full path from what I can tell. Initially thinking is was just a goof with a variable name (something I've certainly been guilty of my self), I changed it to "trailer_folder".

This seemed to have an effect, as now the movie plays with the above settings, but it skips the trailer. The debug log comes back clean with that change, but no trailers means we're not there quite yet.

I've double checked my trailer naming, and they do have the "-trailer" appended to them.

I understand that "T:\" was reserved for the xbox version, so I changed the drive letter to "R:\" to see if there was anything going on with that. But I see no difference.

If anyone needs more info, I'll take screen shots or or cap a short video of what I'm doing. Thanks for taking the time to read this, I hope it will generate some responses. In the mean time, I'll try and take a crash course in python (I've a book on it laying around here somewhere) and see if I can't find out more about the nature of this issue. If I find anything, I'll edit my post with the solution.

Thanks.


- Juanflaco - 2010-01-18

arkryal Wrote:Trailer Play Mode = Stream
Trailer Scraper = Local Folder
Folder = T:\Trailers\
I'm not in front of my xbmc machine right now so I can't confirm, but this bit struck me as odd. I'm using local trailers without issue, and I'm pretty sure I don't have "Stream" as the trailer play mode. What's the other option? Is it "Download" or something? Perhaps try changing that setting and giving it another shot.


- arkryal - 2010-01-18

Yeah, I've tried the download option as well. I should have also said that the files will play locally from the default folder in .../users/appdata/roaming/...

It's only when I change the drive letter that I get the error. The trouble is I don't have 25GB to spare on my install drive. If all else fails, I'll scrap the whole XBMC install and load it on the other drive to make it work. I recall something about the install settings using the roaming data vs the default install path resulting in odd behavior with some plugins. I can try that, however I know it'll break another plugin I use. Still, if it makes a difference, I will note it here.

Edit:
Reinstalled as portable to the drive with my trailers, still doesn't work.


- kiboy6 - 2010-01-19

Local trailers play fine for me. I have 70 or so in "D:\Trailers" :, set to update daily with Therms' awesome script :
http://blog.contriving.net/2009/12/26/apple-trailer-downloader

The only difference I have to your settings arkryal, is that I have it set to play more than one trailer (5) and I also have a "coming attractions clip" before the trailers. Could just be worth a try I for you to add a clip for that i suppose.

Only problem I'm having is that HTE script doesn't seem to remember "watched" status for local trailers. Is this a confirmed issue or is it just me?

(I do not have .nfo's for each trailer, but each one is named moviename-trailer.mov)


- FenceMan - 2010-01-19

This script is awesome. I have it setup now where I have the "Theater" tab in my movie information screen and I hit that to start my Home Theater Experience, one question though. Is there any way to set it up so that I get the HTE to run automatically everytime I start a movie from the beginning without having to go to the movie information screen?

Also why all the fuss about folder structure, isnt that selectable in the HTE settings? I have only setup the trailers so far, my mega pack torrent just finished and I will set that up later.


- messywrk - 2010-01-20

Hey Guys..

I can't get the script to work properly here..
The Apple Trailers (streamed) work fine - can adjust how many and they stream perfectly.

But anything else just seems to fail - No Intro videos, no rating videos, no dolby videos, no trivia.. :confused2:

I've tried to put only 1 File in each "audio" folder, I've renamed the ratings to "NR.avi" etc. and thought maybe there is a Problem with the ';' characters in the Audio Directory of the PACK.. nothing.

..here is a short excerpt from the log at the point where it doesn't work. If you need more Information feel free to request anything from me.

Quote:18:29:39 T:4544 M:4046876672 NOTICE: Title: M:i:III
18:29:39 T:4544 M:4046876672 NOTICE: Path: Mission Impossible 3
18:29:39 T:4544 M:4046876672 NOTICE: Genre: Action / Thriller
18:29:39 T:4544 M:4046876672 NOTICE: MPAA: NR
18:29:39 T:4544 M:4046876672 NOTICE: Audio: ac3
18:29:39 T:4544 M:4046876672 NOTICE: - Folder: Q:\XBMC\data\_aud\Dolby\
18:29:39 T:4544 M:4046876672 NOTICE: ----------------------------------------------------------------------
18:29:39 T:5140 M:4046876672 DEBUG: HttpApi Start command: GetDirectory paras: GetDirectory; Q:\XBMC\data\_aud\Dolby\
18:29:39 T:5140 M:4046868480 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting Q:\XBMC\data\_aud\Dolby\
18:29:39 T:4544 M:4046864384 NOTICE: Error:Not folder
18:29:39 T:4544 M:4046864384 NOTICE: 14f91a14.tbn
18:29:39 T:5140 M:4046852096 DEBUG: HttpApi Start command: FileExists paras: FileExists; Q:\XBMC\data\_ratings\NR.avi

EDIT: I found the problem - smthg adds "\XBMC\" to the specified path for all Clips - maybe this could help smo else.
-> The videos are working now, except for the rating and the Trivia.


- dbldown768 - 2010-01-21

Ok, i think im missing something. i have read through all the threads but something is not making sense. Right now I am using the Transparency skin, so I have that all setup to launch the script. I also setup the properties of the hte script to only point to a local folder of ~/HTE/Ratings/ where I have png files such as R.png, G.png, etc.

When i go to the info tab and try to launch the movie with the added HTE button, nothing new shows up? I was hoping just to show the ratings prior to the movie starting just breifly? Not only that, but the wrong movie plays? I'm getting what would be the next movie below the movie i selected in the list.

Do I need to add a slides.xml file? Sorry for being brief, but I am running out of the house and can add a debug log if necessary. It seems like I'm just missing something very simple.


- timdog82001 - 2010-01-21

You may want a slides.xml file to get your images to appear in the right order, but images should show up even if you don't have one. With regards to the wrong movie playing, are you perchance queuing the movie before you go to video info? You don't need to do that anymore so maybe that's screwing things up...And I assume you have gone into the script settings and configured everything?


- kiboy6 - 2010-01-21

dbldown768 Wrote:Not only that, but the wrong movie plays? I'm getting what would be the next movie below the movie i selected in the list.


This part's easy....just follow the instructions posted by Ronie (Transparency's designer) here: http://forum.xbmc.org/showthread.php?tid=66006

Big Grin


- dbldown768 - 2010-01-21

@kilboy6

Thanks for the tip. That worked for getting the correct movie to play.

However, I still do not see the png file showing up at all. I'm not sure what to put in the slides.xml and where to put it. My guess is I should put it in the ratings folder I haveHuh

here is my ratings folder:
xbmc@xbmc-desktop:~/HTE/Ratings$ ls -l
total 596
-rw-r--r-- 1 xbmc xbmc 91080 2009-12-26 01:31 G.png
-rw-r--r-- 1 xbmc xbmc 85972 2009-12-26 01:31 NC-17.png
-rw-r--r-- 1 xbmc xbmc 96675 2009-12-26 01:38 NR.png
-rw-r--r-- 1 xbmc xbmc 100217 2009-12-26 01:30 PG-13.png
-rw-r--r-- 1 xbmc xbmc 97100 2009-12-26 01:30 PG.png
-rw-r--r-- 1 xbmc xbmc 104225 2009-12-26 01:30 R.png

here is the log of what happens when i try to load the movie...

Code:
21:07:51 T:2896030608 M:1406902272  NOTICE: Genre: Drama / Horror / Mystery / Thriller
21:07:51 T:2896030608 M:1406902272  NOTICE: MPAA: R
21:07:51 T:2896030608 M:1406902272  NOTICE: Audio: ac-3
21:07:51 T:2896030608 M:1406902272  NOTICE: ----------------------------------------------------------------------
21:07:51 T:3041851216 M:1406902272   DEBUG: HttpApi Start command: FileExists  paras: FileExists; /home/xbmc/HTE/Ratings/R.avi
21:07:51 T:3041851216 M:1406902272   DEBUG: new file set audiostream:0
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers(smb://XPS-420/Blu-ray Library2/A Perfect Getaway/A Perfect Getaway.mkv)
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
21:07:51 T:3041851216 M:1406902272   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players



- messywrk - 2010-01-21

you seem to have the same problem, that I'm having since yesterday..

there is an "XBMC" appended to your path - look right at your logfile:

Quote:21:07:51 T:3041851216 M:1406902272 DEBUG: HttpApi Start command: FileExists paras: FileExists; /home/xbmc/HTE/Ratings/R.avi

.. is anyone willing to explain to us why that happens and what possible we could do?
- except for duplicating the whole folder - which is my solution for now.. Wink


- messywrk - 2010-01-21

coming back to the trivia problem:

Quote:16:46:55 T:4136 M:4294967295 DEBUG: HttpApi Start command: FileExists paras: FileExists; Q:\XBMC\data\_trivia\screenquiz1\slides.xml
16:46:55 T:6980 M:4294967295 NOTICE: -----------------------------------------
16:46:55 T:6980 M:4294967295 NOTICE: included - , , q6b.jpg
..
..
16:46:55 T:6980 M:4294967295 NOTICE: included - , , q7b.jpg
16:46:55 T:6980 M:4294967295 NOTICE: included - , , q3b.jpg
16:46:55 T:6980 M:4294967295 NOTICE: included - , , q9a.jpg
16:46:55 T:6980 M:4294967295 NOTICE: total slides selected: 18

This is the LOG when I just add the folder without any slides.xml.. as to be expected it just plays the various pics as a slideshow - everything is a question.

now I'm adding that slides.xml to the Folder where the pics are located:

Quote:<slides>
<slide>
<question format="q[0-9]\a.jpg" />
<clue format="n/a" />
<answer format="q[0-9]\b.jpg" />
</slide>
</slides>

..looks correct, doesn't it?

Quote:16:48:46 T:6592 M:4294967295 DEBUG: HttpApi Start command: FileExists paras: FileExists; Q:\XBMC\data\_trivia\screenquiz1\slides.xml
16:48:46 T:6592 M:4294967295 DEBUG: HttpApi Start command: FileDownload paras: FileDownload; Q:\XBMC\data\_trivia\screenquiz1\slides.xml;bare
16:48:46 T:5052 M:4294967295 NOTICE: skipping whole folder
16:48:46 T:5052 M:4294967295 NOTICE: Q:\XBMC\data\_trivia\screenquiz1\
16:48:46 T:5052 M:4294967295 NOTICE: -----------------------------------------
16:48:46 T:5052 M:4294967295 NOTICE: total slides selected: 0

while this is the outcome. NO slides at all. :mad:

Pleeeease help me and tell me what I'm doing wrong! Smile
Thanks!