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)



RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Cassiel - 2013-01-24

(2013-01-23, 16:21)keisuji Wrote: Hi thanks for the frodo update it works great but I have one problem I canĀ“t use localy stored trailer. I play a movie and the movie starts with the feature presentation.

Here is the part from the log
...
15:13:21 T:3604 NOTICE: -->Python Interpreter Initialized<--
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Script Name: Cinema Experience
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Script ID: script.cinema.experience
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Script Version: 3.0.0
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Starting Window ID: 10025
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Video Playlist Cleared
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Music Playlist Cleared
15:13:23 T:3604 NOTICE: [ script.cinema.experience ] - Action(Queue,25)
15:13:24 T:3604 NOTICE: [ script.cinema.experience ] - Library_view: oldway
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Storing Playlist in memory
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Retrieving Movie Details
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Storing Playlist in memory
15:13:24 T:3480 NOTICE: [script.cinema.experience] - [ home_automation.py ] - activate_on( Script Start ) Triggered
15:13:24 T:3480 NOTICE: [script.cinema.experience] - [ home_automation.py ] - Script Start Triggered
15:13:24 T:3604 NOTICE: [script.cinema.experience] - [ce_playlist.py] - Rebuilding Playlist
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Storing Playlist in memory
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Retrieving Movie Details
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Building Cinema Experience Playlist
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Adding Countdown Videos: 1 Video(s)
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Adding Audio Format Video
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Adding Feature Presentation Intro Videos: 1 Videos
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Retriving Trailers: 1 Trailers
15:13:24 T:3604 NOTICE: [ script.cinema.experience ] - [ XBMC Library scraper ] - XBMC Movie Library Trailer Scraper
15:13:24 T:3604 NOTICE: [ script.cinema.experience ] - [ XBMC Library scraper ] - Getting Watched List
15:13:24 T:3604 ERROR: EXCEPTION: Unimplemented method: executehttpapi::XBMCAddon::xbmc::executehttpapi(...)
15:13:24 T:3604 ERROR: Traceback (most recent call last):
15:13:24 T:3604 ERROR: File "C:\Users\htpc\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py", line 132, in _start
15:13:24 T:3604 ERROR: self._create_playlist( mpaa, audio, genre, movie, equivalent_mpaa )
15:13:24 T:3604 ERROR: File "C:\Users\htpc\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py", line 268, in _create_playlist
15:13:24 T:3604 ERROR: mode = "playlist"
15:13:24 T:3604 ERROR: File "C:\Users\htpc\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\ce_playlist.py", line 60, in _get_trailers
15:13:24 T:3604 ERROR: trailers = Scraper.fetch_trailers()
15:13:24 T:3604 ERROR: File "C:\Users\htpc\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\scrapers\xbmc_library\scraper.py", line 47, in fetch_trailers
15:13:24 T:3604 ERROR: xbmc.executehttpapi( "SetResponseFormat()" )
15:13:24 T:3604 ERROR: RuntimeError: Unimplemented method: executehttpapi::XBMCAddon::xbmc::executehttpapi(...)
15:13:24 T:3604 NOTICE: [script.cinema.experience] - Saving trigger List
15:13:24 T:3692 NOTICE: [script.cinema.experience] - [ home_automation.py ] - activate_on( Script Start ) Triggered
15:13:24 T:3692 NOTICE: [script.cinema.experience] - [ home_automation.py ] - Script Start Triggered
15:13:25 T:1484 NOTICE: DVDPlayer: Opening: Z:\Cinema Experience\Feature Presentation Intro\XBMC feature pres. pixar.mp4
15:13:25 T:1484 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
15:13:25 T:1868 NOTICE: Thread CDVDPlayer start, auto delete: false
15:13:25 T:1868 NOTICE: Creating InputStream
...

same problem here. gifti could you please fix it?


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - hunkyn - 2013-01-24

Thanks giftie works great on Frodo.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2013-01-24

It's going to take a bit to get Trailers from XBMC's Library working. I need to figure it out the fastest method to pull the trailers from the Library


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - adamsey - 2013-01-24

I don't know if I can be of any assistance, but I looked up some of the new JSON-API to try to help with this issue:

Unfortunately the filtering in Frodo does not include filtering by MPAA rating, otherwise this would be a lot simpler. Executing a query like

Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "genre", "operator": "contains", "value": "%s"},  "properties" : ["trailer","mpaa"]}, "id": 1}' % movie_genre)

would find all movies with a similar genre to the feature presentation. You could then parse the result, look at the returned "mpaa" value, for movies with the relevant value, and get their trailer from the value in the "trailer" field.

I hope this is of some help and not redundant to you.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Tomkun - 2013-01-24

Does the home automation stuff still work with the Frodo version? I can't seem to get it to work, but I don't know if it's because of me or not.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2013-01-24

Thanks for the help, definitely not redundant(pointed me in the right direction actually)... Actually the MPAA rating is filterable('mpaarating') along with 'playcount'(for unwatched movies), 'hastrailer'(don't need to fetch movies with out trailers.)

This is probably the call I will be using as I can control all aspects:
Code:
jsonquery = '''{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {  "properties" : ["trailer","mpaa", "genre"], "filter": { "and": [  { "field": "playcount", "operator": "is", "value": "%s" }, { "field": "mpaarating", "operator": "contains", "value": "%s" }, { "field": "genre", "operator": "contains", "value": "%s" }, { "field": "hastrailer", "operator": "true", "value": "true" } ] }  }, "id": 1}''' % ( unwatched, movie_mpaa, movie_genre )

Having any of them blank, basically disables the filter.
Thanks again.
(2013-01-24, 08:24)Tomkun Wrote: Does the home automation stuff still work with the Frodo version? I can't seem to get it to work, but I don't know if it's because of me or not.

Only if it does not use the old HTTPAPI for function calls...



RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - adamsey - 2013-01-24

Oh wow, giftie, that's really cool. I did not see those things in the API doc, and that's actually pretty cool; thank you. Only playing trailers for unwatched movies will make this option really useful. Good luck getting the methods reworked; I'm really enjoying the script on Frodo.


Re: [RELEASE] Cinema Experience - the new Home Theater Experience Script - dbldown768 - 2013-01-24

Thanks for the update ! Everything's working but apple trailers but that seems like a separate issue. Some reason that add on doesn't work for me at all on frodo. Log shows XML exception for main or something like that. The lite version works but I guess isn't compatible with CE.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Tomkun - 2013-01-24

(2013-01-24, 08:46)giftie Wrote:
(2013-01-24, 08:24)Tomkun Wrote: Does the home automation stuff still work with the Frodo version? I can't seem to get it to work, but I don't know if it's because of me or not.

Only if it does not use the old HTTPAPI for function calls...

I'm certainly no expert, but I assume that the line:

xbmc.executehttpapi

Strongly suggests the httpapi is in use, right?Wink

What is the equivalent line is JSON, does anybody know? Would it be a simple cut'n'paste job to fix?

Pleaseohpleaseohplease!


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Smthkd - 2013-01-24

Thanks giftie, Im a noob but so far CE has worked pretty good for me, even getting Apple Trailers to work. The only issue I have experience is the occassional skipping of some local trailers after the slide-show. But thats only been a couple of times, other than that it has been flawless. Really nice to have CE on Frodo! Your the best!


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2013-01-25

(2013-01-24, 16:00)Tomkun Wrote:
(2013-01-24, 08:46)giftie Wrote:
(2013-01-24, 08:24)Tomkun Wrote: Does the home automation stuff still work with the Frodo version? I can't seem to get it to work, but I don't know if it's because of me or not.

Only if it does not use the old HTTPAPI for function calls...

I'm certainly no expert, but I assume that the line:

xbmc.executehttpapi

Strongly suggests the httpapi is in use, right?Wink

What is the equivalent line is JSON, does anybody know? Would it be a simple cut'n'paste job to fix?

Pleaseohpleaseohplease!

Are you using EventGhost to control your Home automation?




RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - jitterjames - 2013-01-25

A few lines of python code are all that you need to broadcast these events to EventGhost using udp. Let me know if I can help.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2013-01-25

(2013-01-25, 00:34)jitterjames Wrote: A few lines of python code are all that you need to broadcast these events to EventGhost using udp. Let me know if I can help.

Some of that would be good to have for getting the VoxCommando Broadcast back Smile




RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Theta - 2013-01-25

(2013-01-25, 00:34)jitterjames Wrote: A few lines of python code are all that you need to broadcast these events to EventGhost using udp. Let me know if I can help.

Yes, please! This would help!


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Tomkun - 2013-01-25

(2013-01-25, 00:28)giftie Wrote:
(2013-01-24, 16:00)Tomkun Wrote:
(2013-01-24, 08:46)giftie Wrote: Only if it does not use the old HTTPAPI for function calls...

I'm certainly no expert, but I assume that the line:

xbmc.executehttpapi

Strongly suggests the httpapi is in use, right?Wink

What is the equivalent line is JSON, does anybody know? Would it be a simple cut'n'paste job to fix?

Pleaseohpleaseohplease!

Are you using EventGhost to control your Home automation?

I am indeed, using the instructions provided by yourself here:http://forum.xbmc.org/showthread.php?tid=87563&pid=790523#pid790523