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)



- soldave - 2011-06-14

giftie Wrote:lol.. Not going to blame your internet Big Grin There has been a problem with streaming files if there is a video preceding the streams, apparently it only shows up when Cinema Experience but I am 90% positive that the script is not at fault, since it is just sitting in the background triggering Home Automation signals.

If you drop the videos before the trailers, it should not have a problem..

Just used HTW fo the first time in a couple of months and noticed this too. So is the only way around this still to have no introduction videos before the trailers start?


- Banditt - 2011-06-14

The Wuggly Ump Wrote:Hi folks. Really like the script so far, but I've got a few questions:

1. There are options to match trailers to genres and ratings. How do I select what genre/rating a trailer is?
I think if you set it - the scraper will only pull trailers of that genre/rating
The Wuggly Ump Wrote:5. Not a question, but the directory structure tutorial doesn't have a folder for Countdowns.
Countdowns are in the settings under Special Videos - just point to the countdown video there


- The Wuggly Ump - 2011-06-15

Banditt Wrote:I think if you set it - the scraper will only pull trailers of that genre/rating
So the option only applies to the web-trailer scraper? That's a shame, it sounded cool. I guess I'll have to stop downloading 70s exploitation trailers if they might run before a family movie...


- giftie - 2011-06-15

The Wuggly Ump Wrote:So the option only applies to the web-trailer scraper? That's a shame, it sounded cool. I guess I'll have to stop downloading 70s exploitation trailers if they might run before a family movie...

You can use downloaded trailers, but the script needs to know some information(contained in the .NFO file) For instance, HD-Trailers.Net Downloader can build '-trailer.nfo' files for the trailers it downloads. Also the script's built in downloader also creates these .NFO files that it downloads.

If you look at a .NFO file that these create, you can manually create ones for your own trailers.

For instance fere is one that the script made for a trailer it downloaded(available here if you want a closer look):

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<movieinfo id="4209">
    <title>Henry's Crime</title>
    <quality>480p</quality>
    <runtime>2:07</runtime>
    <releasedate>2011-04-08</releasedate>
    <mpaa>R</mpaa>
    <genre>Comedy</genre>
    <studio>Moving Pictures Film and Television</studio>
    <director>Malcolm Venville</director>
    <cast></cast>
    <plot>Working the night shift as a toll collector on a lonely stretch of highway in Buffalo, New York.......</plot>
    <thumb>/home/xbmc/Videos/henryscrime-tlr1_h480p-trailer.tbn</thumb>
</movieinfo>

As long as this file is named exactly as the trailer(aside from the '.nfo' and in the same folder(directory) as the trailer, the script will look inside this file, looking for the Rating and the Genre.


- giftie - 2011-06-15

The Wuggly Ump Wrote:Hi folks. Really like the script so far, but I've got a few questions:

1. There are options to match trailers to genres and ratings. How do I select what genre/rating a trailer is?

see the above message

Quote:2. Is there a way to create a buffer time between videos? It's jarring when a video cuts directly into the next. It would be awesome to have a fade or something, but even a simple 1-second black screen would be an improvement.

At the moment no. The script can not affect the 'harshness' of the trasitions between the videos(it is actually a glorified video playlist builder - with some extras Smile )

With that being said, it would be possible for small videos to be insterted between videos(your 1 second of black), just need a valid video. Then I need some precious programming time to add the option of insterting these videos(very doable)

Quote:3. I have some videos that'd go nicely between the trailers, but I can't find an option for that kind of thing. I'd like to play one random trailer, then play one random video from a list (or a specific video, although that wouldn't be as neat), then another trailer and so on. Is this possible?

Basically the same answer as above. Possibly you will see it in a future release...


Quote:4. Similarly, is it possible to create custom categories and/or set specific videos to obey certain rules (always playing after the movie theater intro, etc)? Keep in mind I know nothing about scripting. Smile

I am planning on adding a 'Cartoon' Video option, as well as a couple of other video locations.

Quote:5. Not a question, but the directory structure tutorial doesn't have a folder for Countdowns.

Opps.. need to update that... Smile


- The Wuggly Ump - 2011-06-15

Thanks giftie! The .nfo file support is exactly what I was hoping for. I'll start playing with that immediately. Big Grin


- lightkeepr - 2011-06-17

When I start CE the trivia plays and the feature presentation plays but the I am returned to the movie list. Here is the log: http://pastebin.com/d3N7mQh3 . I am very new at this and maybe I have a setting wrong. Any suggestions?


- giftie - 2011-06-17

I see the error, I'll see if I can get it fixed when I get home from work.


- lightkeepr - 2011-06-17

giftie Wrote:I see the error, I'll see if I can get it fixed when I get home from work.

Out of all that stuff you managed to find something useful in solving my problem? Simply amazing! Thanks for your hard work, I so far am loving the capability of xbmc for my backyard theater!


- Zoltrix - 2011-06-18

giftie Wrote:As long as this file is named exactly as the trailer(aside from the '.nfo' and in the same folder(directory) as the trailer, the script will look inside this file, looking for the Rating and the Genre.
Hi giftie,

When you say it needs to be exactly the same, does that include the -trailer?

Eg, would the files need to be named like so?:
The Girl With the Dragon Tattoo (Trailer No 1)-trailer.nfo
The Girl With the Dragon Tattoo (Trailer No 1)-trailer.mov

I'm using the HD-Trailers.NET Downloader script, and when it names the nfo file, it leaves off -trailer. Eg, the filename for an nfo looks like:

The Girl With the Dragon Tattoo (Trailer No 1).nfo

I'm wondering if this is why the genre option isn't working for me. When I enable the limit trailers by genre option, it doesn't play any trailers at all.


- giftie - 2011-06-18

Zoltrix Wrote:Hi giftie,

When you say it needs to be exactly the same, does that include the -trailer?

Eg, would the files need to be named like so?:
The Girl With the Dragon Tattoo (Trailer No 1)-trailer.nfo
The Girl With the Dragon Tattoo (Trailer No 1)-trailer.mov

I'm using the HD-Trailers.NET Downloader script, and when it names the nfo file, it leaves off -trailer. Eg, the filename for an nfo looks like:

The Girl With the Dragon Tattoo (Trailer No 1).nfo

I'm wondering if this is why the genre option isn't working for me. When I enable the limit trailers by genre option, it doesn't play any trailers at all.

Something must have gotten changed in HD Trailers.net Downloader - it used to properly label them..


- Laciecat - 2011-06-20

True Grit (2010) Slides

http://www.megaupload.com/?d=50DIF72Z

Hope you enjoy!


- dirtdog900 - 2011-06-20

Hello

This is a fantastic script but I am picking up the 'ERROR: Error trying to retrieve an item that's out of range' when using the apple streaming trailers. Generally, it will play 1 trailer out of the 5 I have configured and then just stops...generating that error in the debug log.

Any ideas what causes that?


- MazdaDriver5 - 2011-06-20

This will be my first post here. Smile I just discovered XBMC yesterday and already really loving it and this script as well. I've been looking for something a bit more powerful than Windows Media Player now that I have my laptop hooked up to my 42" HDTV via HDMI and this looks like it will do the job. Smile

However, I run into errors when I try to use the trivia portion of this script, from what I can tell the trailer part runs fine, if a little belated, but still well. I don't have any trailers on my computer so I used the streaming option and that worked alright apart from buffering issues but that is due to my internet connection. Anyway, the trivia error I get. I click Cinema Play in XBMC and it does nothing, just hangs. I have a portion of the log here that I've deduced that's where it stops at.

Code:
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Version: 1.0.46
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Starting Window ID: 10024
10:18:09 T:4944 M:2019545088  NOTICE: [script.cinema.experience] - Log Level: 0
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Video Playlist Cleared
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Music Playlist Cleared
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Action(Queue,24)
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - Library_view: oldway
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - auto_refresh( False, disable )
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - Autorefresh Status: False
10:18:10 T:4944 M:2020614144  NOTICE: Traceback (most recent call last):
10:18:10 T:4944 M:2020614144  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\ce_playlist.py", line 273, in _get_queued_video_info
10:18:10 T:4944 M:2020593664  NOTICE:     mpaa, genre, audio, dummy = xbmc.executehttpapi( "QueryVideoDatabase(%s)" % quote_plus( sql ), ).split( "</field>" )
10:18:10 T:4944 M:2020593664  NOTICE: ValueError: need more than 1 value to unpack
10:18:10 T:4944 M:2020593664  NOTICE: [script.cinema.experience] - Feature - Men of Honor.mkv
10:18:10 T:4944 M:2020593664  NOTICE: [script.cinema.experience] - Storing Playlist
10:18:10 T:4944 M:2020765696  NOTICE: [script.cinema.experience] - Slide MPAA Rating:
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - Sorting Watched/Unwatched and Shuffing Slides
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - total slides selected: 111
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - ## Intro ##
10:18:11 T:4944 M:2020532224  NOTICE: [script.cinema.experience] - Starting Trivia script
10:18:11 T:4944 M:2020528128  NOTICE: Traceback (most recent call last):
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 640, in ?
10:18:11 T:4944 M:2020528128  NOTICE:     exit = start_script( "oldway" )
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 491, in start_script
10:18:11 T:4944 M:2020528128  NOTICE:     _play_trivia( mpaa, genre, plist, equivalent_mpaa )
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 428, in _play_trivia
10:18:11 T:4944 M:2020528128  NOTICE:     ui = Trivia( "script-CExperience-trivia.xml", _A_.getAddonInfo('path'), "default", "720p", settings=settings, mpaa=mpaa, genre=genre, plist=plist, slide_playlist=slide_playlist )
10:18:11 T:4944 M:2020528128  NOTICE: TypeError: XML File for Window is missing
The last line is the last line in my log, it just hangs there. Any help would be greatly appreciated! I'm using the base Neon theme, haven't changed it a bit.


- Regss - 2011-06-20

Hi!
I added a button to Confluence:
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>

After pressing button the movie does not play
and XBMC shows error in log:

Code:
20:22:02 T:2160 M:922079232  NOTICE: -->Python Interpreter Initialized<--
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script Version: 1.0.46
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Starting Window ID: 10025
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Log Level: 0
20:22:02 T:2160 M:921047040  NOTICE: [script.cinema.experience] - Video Playlist Cleared
20:22:02 T:2160 M:921047040  NOTICE: [script.cinema.experience] - Music Playlist Cleared
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Action(Queue,25)
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - Library_view: oldway
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - auto_refresh( False, disable )
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - Autorefresh Status: False
20:22:03 T:2160 M:921804800  NOTICE: [script.cinema.experience] - Feature - Legendy sowiego królestwa: Strażnicy Ga'Hoole
20:22:03 T:2160 M:921804800  NOTICE: [script.cinema.experience] - Storing Playlist
20:22:03 T:2160 M:921800704  NOTICE: [script.cinema.experience] - Error - Playlist Empty
20:22:03 T:2160 M:921796608  NOTICE: [script.cinema.experience] - Music Playlist Cleared
20:22:03 T:2160 M:921796608  NOTICE: [script.cinema.experience] - Loading Trigger List
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - Video Definitely Stopped
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - User might have pressed stop
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - Stopping Script
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - messy_exit: False
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - Video Playlist Cleared
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - Music Playlist Cleared

What I'm doing wrong?
On the other skins work properly.