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)



- Ilia - 2010-12-09

Hi,

I have taken (read found on google) latest I could find Home Theater Experince script and modified it to work for Dharma RC2.

http://www.megaupload.com/?d=T9ZGSWPE

Now there are a few things that I could not manage to fix, mainly the ability to "cofigure" the script. What I have done is created a settings.xml file in:
xbmc/userdata/addon_data/script.cinema.experience/

PHP Code:
<settings>
    <
setting id="bbfc_nr_rating" value="4" />
    <
setting id="command_script" value="" />
    <
setting id="command_script_onpause" value="false" />
    <
setting id="dolby_dts_folder" value="" />
    <
setting id="experience_prefer_unwatched" value="true" />
    <
setting id="experience_theme" value="8" />
    <
setting id="experience_theme_other_text" value="" />
    <
setting id="movie_rating_system" value="0" />
    <
setting id="mpaa_nr_rating" value="2" />
    <
setting id="mpaa_ratings_duration" value="7.000000" />
    <
setting id="mpaa_ratings_folder" value="" />
    <
setting id="parental_control" value="false" />
    <
setting id="playlist_item1" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item10" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item10_duration" value="10.000000" />
    <
setting id="playlist_item10_file" value="" />
    <
setting id="playlist_item10_folder" value="" />
    <
setting id="playlist_item10_number" value="1" />
    <
setting id="playlist_item11" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item11_duration" value="10.000000" />
    <
setting id="playlist_item11_file" value="" />
    <
setting id="playlist_item11_folder" value="" />
    <
setting id="playlist_item11_number" value="1" />
    <
setting id="playlist_item12" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item12_duration" value="10.000000" />
    <
setting id="playlist_item12_file" value="" />
    <
setting id="playlist_item12_folder" value="" />
    <
setting id="playlist_item12_number" value="1" />
    <
setting id="playlist_item13" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item13_duration" value="10.000000" />
    <
setting id="playlist_item13_file" value="" />
    <
setting id="playlist_item13_folder" value="" />
    <
setting id="playlist_item13_number" value="1" />
    <
setting id="playlist_item14" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item14_duration" value="10.000000" />
    <
setting id="playlist_item14_file" value="" />
    <
setting id="playlist_item14_folder" value="" />
    <
setting id="playlist_item14_number" value="1" />
    <
setting id="playlist_item15" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item15_duration" value="10.000000" />
    <
setting id="playlist_item15_file" value="" />
    <
setting id="playlist_item15_folder" value="" />
    <
setting id="playlist_item15_number" value="1" />
    <
setting id="playlist_item1_duration" value="10.000000" />
    <
setting id="playlist_item1_file" value="" />
    <
setting id="playlist_item1_folder" value="" />
    <
setting id="playlist_item1_number" value="1" />
    <
setting id="playlist_item2" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item2_duration" value="10.000000" />
    <
setting id="playlist_item2_file" value="" />
    <
setting id="playlist_item2_folder" value="" />
    <
setting id="playlist_item2_number" value="1" />
    <
setting id="playlist_item3" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item3_duration" value="10.000000" />
    <
setting id="playlist_item3_file" value="" />
    <
setting id="playlist_item3_folder" value="" />
    <
setting id="playlist_item3_number" value="1" />
    <
setting id="playlist_item4" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item4_duration" value="10.000000" />
    <
setting id="playlist_item4_file" value="" />
    <
setting id="playlist_item4_folder" value="" />
    <
setting id="playlist_item4_number" value="1" />
    <
setting id="playlist_item5" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item5_duration" value="10.000000" />
    <
setting id="playlist_item5_file" value="" />
    <
setting id="playlist_item5_folder" value="" />
    <
setting id="playlist_item5_number" value="1" />
    <
setting id="playlist_item6" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item6_duration" value="10.000000" />
    <
setting id="playlist_item6_file" value="" />
    <
setting id="playlist_item6_folder" value="" />
    <
setting id="playlist_item6_number" value="1" />
    <
setting id="playlist_item7" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item7_duration" value="10.000000" />
    <
setting id="playlist_item7_file" value="" />
    <
setting id="playlist_item7_folder" value="" />
    <
setting id="playlist_item7_number" value="1" />
    <
setting id="playlist_item8" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item8_duration" value="10.000000" />
    <
setting id="playlist_item8_file" value="" />
    <
setting id="playlist_item8_folder" value="" />
    <
setting id="playlist_item8_number" value="1" />
    <
setting id="playlist_item9" value="$ADDON[script.cinema.experience 30411]" />
    <
setting id="playlist_item9_duration" value="10.000000" />
    <
setting id="playlist_item9_file" value="" />
    <
setting id="playlist_item9_folder" value="" />
    <
setting id="playlist_item9_number" value="1" />
    <
setting id="repo" value="http://xbmc-addons.googlecode.com/" />
    <
setting id="slide_duration" value="15.000000" />
    <
setting id="slideshow_duration" value="15.000000" />
    <
setting id="slideshow_folder" value="" />
    <
setting id="slideshow_music" value="true" />
    <
setting id="slideshow_music_playlist" value="" />
    <
setting id="slideshow_music_volume" value="0.000000" />
    <
setting id="trailer_count" value="1" />
    <
setting id="trailer_folder" value="" />
    <
setting id="trailer_newest_only" value="true" />
    <
setting id="trailer_source_1" value="0" />
    <
setting id="trailer_source_2" value="0" />
</
settings

change <setting id="trailer_count" value="1" /> to how many trailers you want.

Worked for me on MacOS, Dharma RC2, with 1 trailer playing before the movie starts. In the skin all I did was RunScript(script.cinema.experience).

If anyone out there that knows a bit about addons and configuration of them please update this script.

All credits go to Nuka for the script, all i did was "ported" it to work with dharma Smile

Cheers,
Ilia


- User 55003 - 2010-12-09

Cool mate, happy days Big Grin works exactly as it did pre Dharma...
Now to hack the DialogInfo/Poster.xml and I'll be stoked, thanks again..Cool
Cheers.

Image

Hacked Night's DialogVideoInfo.xml and works like a charm, great stuff....
I hacked the Trailer button but you could creat a new one.
Code:
<control type="button" id="11">
          <description>Play Trailer</description>
          <include>ButtonInfoDialogsCommonValues</include>
          <label>Cinema</label>
          <onclick>Dialog.Close(MovieInformation)</onclick>
          <onclick>RunScript(script.cinema.experience)</onclick>
</control>
Regarding config of script, just use context menu/addon settings.. works for me.. great Smile


- SlaveUnit - 2010-12-09

Steveb Wrote:Cool mate, happy days Big Grin works exactly as it did pre Dharma...
Now to hack the DialogInfo/Poster.xml and I'll be stoked, thanks again..Cool
Cheers.

Image

Hacked Night's DialogVideoInfo.xml and works like a charm, great stuff....
I hacked the Trailer button but you could creat a new one.
Code:
<control type="button" id="11">
          <description>Play Trailer</description>
          <include>ButtonInfoDialogsCommonValues</include>
          <label>Cinema</label>
          <onclick>Dialog.Close(MovieInformation)</onclick>
          <onclick>RunScript(script.cinema.experience)</onclick>
</control>
Regarding config of script, just use context menu/addon settings.. works for me.. great Smile

Anyone know what file this would be in Aeon MQ 2?
I thought it may be DialogVideoInfo.xml, but it's looking like it's not.


- Fraincs - 2010-12-09

Any idea if it would work with Dharma RC3?


- htpc guy - 2010-12-09

LaughSweet!

Can't wait to get home and give this a try.


- SlaveUnit - 2010-12-09

When I change the script from the settings GUI it kills it. Doesnt work after that. Although using Ilia's settings.xml does work for the one trailer before the movie. It's just not the easiest thing to figure out for all eh other options. But this is a great start to getting this completely working for Dharma.

So are people getting this to work with things other than the trailers? Such as the slides or their own intro movies? Im not having any success with them and wondering if anyone else is.


- revned - 2010-12-09

This is fantastic!!! Nod

Which brings me to another problem. I stream my trailers from a local folder. I used to download these trailers with ATD (http://blog.contriving.net/2009/12/26/apple-trailer-downloader/), which automatically created the NFO's for HTE, but this script no longer works. Does anyone know of a good alternative?


- Ilia - 2010-12-09

This should work with RC3 or final unless they change the python interface to xbmc completely.

Yes, it does kill xbmc when you got though addons->cinema expernece->configure and I am not sure why at this stage - someone with addon creation experience could help in that.

Though apparently if you got through video addons( or programs addons?) -> hover on cinema experience -> get the context menu ->settings I thin you can get to the settings - need to try this myself (which i will on the weekend)

In terms of slides am not sure, never used them - but will try later on.

Cheers,


- s_inman - 2010-12-09

This is great thanks!

However I have a question, I have got trailers to work but I have a file on my hard drive I like to play before every movie how do I do this?

Thanks.


- User 55003 - 2010-12-10

SlaveUnit Wrote:When I change the script from the settings GUI it kills it. Doesnt work after that. Although using Ilia's settings.xml does work for the one trailer before the movie. It's just not the easiest thing to figure out for all eh other options. But this is a great start to getting this completely working for Dharma.

So are people getting this to work with things other than the trailers? Such as the slides or their own intro movies? Im not having any success with them and wondering if anyone else is.

Yep, got it working with Special vid intro/outro, random feature intro, random trailers (local), addon settings work perfectly for me done through the context menu of the addon.
WinXP-Dharma RC2-Night(latest git)

Just tried my Ratings and audio folders and they work also, cool stuff Smile


- SlaveUnit - 2010-12-10

Can you say what your steps are doing? Its weird that others, including myself, cant get this to work when configuring with the gui.

With NIGHT as my skin:
I got to ADD-ONS from the home menu
Hit "c" on the Cinema Experience to bring up the context menu
Then go to Add-on setting
Then set trivia slideshow to 10 mins and add a path for the slides.
Then go to Movies and go to the info page and start the movie with the added Cinema button.

Once I do this is does nothing just brings me right back to the movies list. Are you doing something different?


- Ilia - 2010-12-10

SlaveUnit Wrote:Can you say what your steps are doing? Its weird that others, including myself, cant get this to work when configuring with the gui.

With NIGHT as my skin:
I got to ADD-ONS from the home menu
Hit "c" on the Cinema Experience to bring up the context menu
Then go to Add-on setting
Then set trivia slideshow to 10 mins and add a path for the slides.
Then go to Movies and go to the info page and start the movie with the added Cinema button.

Once I do this is does nothing just brings me right back to the movies list. Are you doing something different?

There is probably an error,

paste the last bit of the xbmc.log here, you should see an "ERROR" when you kick of the plugin in the logs.


- User 55003 - 2010-12-10

I dont use the trivia slideshow stuff, never have so that's the only difference all the other steps are the same, could be a bug in the trivia section? hope you get it sorted, its great to have this feature back...
Cheers Ilia.

Does it populate the play list (context menu/now playing) in movies?
Image


- SlaveUnit - 2010-12-10

No matter what I setup in the settings I get the same result. It just goes back to the menu and doesnt play anything.

Here is my debug log. You can see the script fails. The only difference I can see between ours is that Im running win 7 x64 and possibly that I run in portable mode and you run in profile mode.

http://pastebin.com/0cx7sRnA


- SlaveUnit - 2010-12-10

Ok so I cleared out the settings.xml and added just an intro movie. That worked. So I see why it is working for you. Once I do add to the trivia slides section it breaks it.