Kodi Community Forum
[RELEASE] Cinema Experience - the new 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] Cinema Experience - the new Home Theater Experience Script (/showthread.php?tid=87563)



- misterhek - 2011-03-22

foghat Wrote:So after uninstalling and reinstalling the newest version, I seem to be good.

I am going to try out HD-Trailers.NET Downloader for trailers. The feature list says it can create xbmc .nfo files, however the config file does not have this tag. Does anyone happen to know what this tag should be?

I've also posted at http://hdtrailersdler.codeplex.com, but doesn't seem to be a lot of activity over there.

The tag is included in the svn version. Here is mine, its the 8th key down:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="QualityPreference" value="1080p,720p" />
    <add key="SitesToSkip" value=""/>
    <add key="TrailerDownloadFolder" value="T:\Trailers\" />
    <add key="MetadataDownloadFolder" value="T:\Trailers" />
    <add key="CreateFolder" value="false" />
    <add key="GrabPoster" value="true" />
    <add key="XBMCFileNames" value="true" />
    <add key="CreateXBMCNfoFile" value="true" />
    <add key="KeepFor" value="30" />
    <add key="TrailersOnly" value = "true"/>
    <add key="StrictTrailersOnly" value = "false"/>
    <add key="IncludedGenres" value="all" />
    <add key="ExcludeGenres" value="None" />
    <add key="MinTrailerSize" value = "100000"/>
    <add key="UseExclusions" value="true" />
    <add key="AddDates" value="true" />
    <add key="UserAgentIds" value="apple.com" />
    <add key="UserAgentStrings" value="QuickTime/7.6.2" />
    <add key="FeedAddress" value="http://www.hd-trailers.net/blog/feed/" />
    <add key="PauseWhenDone" value="false" />
    <add key="VerboseLogging" value="true" />
    <add key="PhysicalLog" value="false" />
    <add key="EmailSummary" value="false" />
    <add key="EmailAddress" value="[email protected]" />
    <add key="SMTPServer" value="your.smtp.server.net" />
    <add key="EmailReturnAddress" value="[email protected]" />
    <add key="EmailReturnDisplayName" value="HD-Trailer.NET Downloader" />
    <add key="RunEXE" value="false" />
    <add key="RunOnlyWhenNewTrailers" value="true"/>
    <add key="Executable" value="D:\Tools Storage\growlnotify\growlnotify.com" />
    <add key="EXEArguements" value="/p:1 &quot;%N New Trailers Downloaded&quot;" />
  </appSettings>
</configuration>

Btw, the file should be in AppData\Local\HD-Trailers.Net Downloader


- foghat - 2011-03-22

misterhek Wrote:Btw, the file should be in AppData\Local\HD-Trailers.Net Downloader


Thanks for the tag. Though it does not seem to work in the version I downloaded from the main site.

So I tried version 1.4 (63413), but I can't get that to run, a bunch more folders and files and clicking HD-Trailers.Net Downloader.exe (in the release folder) causes an error


- justermin - 2011-03-22

Forgive me if i have missed the obvious but how does this script work now... I downloaded and installed this script on Sunday on 2 machines, edited the "dialogvideoinfo" file and all was working ok.
Monday afternoon i install another machine, goto the same file and its totally different?
How do i actually run the script as i dont see the Cinema button in movie info anymore?


- giftie - 2011-03-22

justermin Wrote:Forgive me if i have missed the obvious but how does this script work now... I downloaded and installed this script on Sunday on 2 machines, edited the "dialogvideoinfo" file and all was working ok.
Monday afternoon i install another machine, goto the same file and its totally different?
How do i actually run the script as i dont see the Cinema button in movie info anymore?

Which skin?


Quick bug fix update - giftie - 2011-03-22

1.0.40
- Fixed - Corrected Trivia Music
- Fixed - Cleaned up Settings
- Updated - New Spanish Translation. Thanks KiSUAN
- Added Home Automation Integration file - PM Giftie for details.


- barcoboy - 2011-03-22

giftie Wrote:1.0.40
- Fixed - Corrected Trivia Music
Working great-thanks again!

Weird... my last three posts have ended up starting new forum pages (102, 104, and 105).


- justermin - 2011-03-22

Sorry forgot to say...Confluence skin


- justermin - 2011-03-23

**Bump**

Using Confluence skin.....was wondering how to activate the latest release as "Cinema" button no longer appears in movie info screen....


- giftie - 2011-03-23

Nothing on the addon side has changed. Do you have the extra code in the proper place for the Confluence? I believe it is the DialogVideoInfo.xml..


- justermin - 2011-03-23

I have the script.... but the script i edited from the addon on sunday is totally different to the script that is now contained in the upgrade version? cant even find the lines to be edited in there now :confused2: i got it on 2 diff machines and both scripts are totally different :confused2: old script works fine but new clean install dont.


- giftie - 2011-03-23

justermin Wrote:I have the script.... but the script i edited from the addon on sunday is totally different to the script that is now contained in the upgrade version? cant even find the lines to be edited in there now :confused2: i got it on 2 diff machines and both scripts are totally different :confused2: old script works fine but new clean install dont.

I still don't quite understand. What version of XBMC are you using? Confluence has changed in the XBMC's Development(GIT) but not for Dharma(10.0 or 10.1) To add the button for the Addon in Confluence you need to add the following to DialogVideoInfo.xml - Insert After line 1128 and before 1129.

Code:
<control type="button" id="13">
      <description>Home Cinema Experience</description>
      <include>ButtonInfoDialogsCommonValues</include>
      <label>Cinema</label>
      <onclick>Dialog.Close(MovieInformation)</onclick>
      <onclick>Playlist.Clear</onclick>
      <onclick>RunScript(special://home/addons/script.cinema.experience/addon.py)</onclick>
</control>

This adds a button to the Info Window.. One Important note. If the Movie has a Trailer, the button is not Visible, but still accessible. Scroll to the right and it should show up.


As I said before, I haven't made a change to the Addon that affects how it is started. Also it the code above is the same as yours, the button will always be there, whether or not the addon is installed. So I'm not sure what problems you are having..


Can't get Trivia working... - enigmakairos - 2011-03-23

Excuse my noobness in advance...

Running dharma on OS X Snow Leopard, CE version 1.0.40 using the Aeon MQ skin.

Everything else (so far) about the script seems to work except when I turn on Trivia. I've double-checked the slides.xml and my naming convention (blah blah) about 100 times now and same result when I go into the Cinema menu and queue something up- nothing.

Log returns the following:


21:55:33 T:2962051072 M:2719727616 NOTICE: [script.cinema.experience] - Feature - You Again
21:55:33 T:2962051072 M:2719727616 NOTICE: [script.cinema.experience] - Storing Playlist
21:55:33 T:2962051072 M:2719776768 NOTICE: [ script.cinema.experience ] - [ ce_playlist.py ] - Building Music Playlist
21:55:33 T:2962051072 M:2718822400 NOTICE: Traceback (most recent call last):
21:55:33 T:2962051072 M:2718822400 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 550, in ?
21:55:33 T:2962051072 M:2718973952 NOTICE: exit = start_script( sys.argv[ 1 ].lower() )
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 442, in start_script
21:55:33 T:2962051072 M:2718973952 NOTICE: _play_trivia( equivalent_mpaa, genre, plist )
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 369, in _play_trivia
21:55:33 T:2962051072 M:2718973952 NOTICE: build_music_playlist()
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/resources/lib/ce_playlist.py", line 345, in build_music_playlist
21:55:33 T:2962051072 M:2719014912 NOTICE: print track_location
21:55:33 T:2962051072 M:2719014912 NOTICE: UnboundLocalError: local variable 'track_location' referenced before assignment
21:55:33 T:2962051072 M:2719014912 NOTICE: [script.cinema.experience] - messy_exit: Use Ctrl-D (i.e. EOF) to exit.


Can someone pleeeze tell me what I'm missing here? Eek


- giftie - 2011-03-23

Music... Though not a fault of yours.. Since you have Trivia Music set to none(or I guess you do) This error showed up because the script tried to build a music play list with out any music.. Smile I fixed the error. 1.0.41 can be downloaded and it should work nicely then...

enigmakairos Wrote:Excuse my noobness in advance...

Running dharma on OS X Snow Leopard, CE version 1.0.40 using the Aeon MQ skin.

Everything else (so far) about the script seems to work except when I turn on Trivia. I've double-checked the slides.xml and my naming convention (blah blah) about 100 times now and same result when I go into the Cinema menu and queue something up- nothing.

Log returns the following:


21:55:33 T:2962051072 M:2719727616 NOTICE: [script.cinema.experience] - Feature - You Again
21:55:33 T:2962051072 M:2719727616 NOTICE: [script.cinema.experience] - Storing Playlist
21:55:33 T:2962051072 M:2719776768 NOTICE: [ script.cinema.experience ] - [ ce_playlist.py ] - Building Music Playlist
21:55:33 T:2962051072 M:2718822400 NOTICE: Traceback (most recent call last):
21:55:33 T:2962051072 M:2718822400 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 550, in ?
21:55:33 T:2962051072 M:2718973952 NOTICE: exit = start_script( sys.argv[ 1 ].lower() )
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 442, in start_script
21:55:33 T:2962051072 M:2718973952 NOTICE: _play_trivia( equivalent_mpaa, genre, plist )
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/addon.py", line 369, in _play_trivia
21:55:33 T:2962051072 M:2718973952 NOTICE: build_music_playlist()
21:55:33 T:2962051072 M:2718973952 NOTICE: File "/Users/HTPC/Library/Application Support/XBMC/addons/script.cinema.experience/resources/lib/ce_playlist.py", line 345, in build_music_playlist
21:55:33 T:2962051072 M:2719014912 NOTICE: print track_location
21:55:33 T:2962051072 M:2719014912 NOTICE: UnboundLocalError: local variable 'track_location' referenced before assignment
21:55:33 T:2962051072 M:2719014912 NOTICE: [script.cinema.experience] - messy_exit: Use Ctrl-D (i.e. EOF) to exit.


Can someone pleeeze tell me what I'm missing here? Eek



- ezechiel1917 - 2011-03-23

just to check before making any conclusions, do you guys have actual thumbs for trailers displayed when they're played (local / xbmc db source) - I always get only skins default image for thumb - v1.0.40?

what's the right naming convention for thumbs?

moviename-trailer.mov
moviename-trailer.tbn ?

thanks for info


- enigmakairos - 2011-03-23

giftie Wrote:Music... Though not a fault of yours.. Since you have Trivia Music set to none(or I guess you do) This error showed up because the script tried to build a music play list with out any music.. Smile I fixed the error. 1.0.41 can be downloaded and it should work nicely then...

It does, indeed, now work for me. Many (manymanymany) thanks! Big Grin