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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Home Theater Experience (Script) (/showthread.php?tid=55628)



- mccorkled - 2010-01-25 16:37

steppedup Wrote:I think I've got this whupped.

"A Bug's Life" as pulled from IMDB.com by the XBMC Media Companion is rated "U".

"U" as discussed in previous posts is not considered to be an issue, and therefore, xbmcscript_trivia.py is not designed to catch it.

Kudos to mssywork (sp?) for noticing this first - if correct, I'm just supplementing their work.



There's no "U" in the mpaa ratings.

So, I yanked out the code indicated by msswork....


And booya - no more problems.

Of course, that means rating doesn't work with the trivia questions, but I've got an easy solution for you.

Make two sets of folders - one for adults and one for adults & kids. Before running the script, just go in and set it to the right folder.

Sure, it uses some hard disk space, but since everyone who's using XBMC probably has terabytes of space for their movies anyway.....


For Nuka - the IMDB is a manually updated database. That means it's going to have all sorts of incorrect information all of the time.

What about adjusting the logic to checking for an mpaa rating match? If no match, then assume the slide is rated G - and can be used with all levels of movies.

Hope that helps....it worked for me....

I used Ember to scrape "A Bug's Life" from IMDB. It scraped the rating as "J"

I manually changed it to "Rated G" still not working. Do I need to edit the movie rating in the XBMC DB? IDK where that even is.

Havent heard from Nuka in a while. Wonder if he's been around checking up on us. Interested in if he's working on that newer version we all thought would be pretty cool.


Newbie guide put together - steppedup - 2010-01-26 02:53

nmt1978 Wrote:Does anyone have a step-by-step guide on how to configure and use this script for a newbi? This script is not a install-and-run kind?

Here it is. Covers from installation of XBMC to HTE install, HTE configuration, and HTE usage.

How to get Q&A slides working as well as trailers.

Specifically for Confluence skin...I should say, on Windows boxes.


- kiboy6 - 2010-01-26 04:41

Hi Steppedup - great work on your guides Smile

I was curious about one thing....on your instructions for using locally downloaded trailers, no 10 is tell HTE to "Select only unwatched Trailers".

I have posted a few times here, but have not heard back from anyone, to state that HTE does not seem to correctly apply "watched" status to my locally Downloaded trailers.

Is it working fine for you? If so I wonder if the .nfo files generated by the --htenfo parameter have anything to do with it? (I have no .nfos with my trailers and i also use the -r parameter to rename each trailer)

Thanks for any advice! Smile


Can't replicate already watched trailers replaying - steppedup - 2010-01-26 09:36

Hi kiboy6 -thanks for the kudos!

I haven't seen your issue on my system - and I just tried to break it.

In debug mode:

1. I copied 3 trailers into a separate folder (including the .nfo files). Reset the trailers watched back in the script. Watched all 3 videos.

Each video showed this,after it was played.

22:22:37 T:3964 M:488046592 DEBUG: CApplication::SaveFileState - Marking video item J:\Trailered\htrenfo\aliceinwonderland-tlr1_h720p-trailer.mov as watched

2. Added in one more trailer, with the total number of trailers to be watched set as 1. (So, there are 4 trailers in the folder, with 3 already having been watched.

The correct, unwatched trailer showed up.

Can you replicate a similar approach, and post the debug logs?

Not sure if I can find the issue, but I'll give it a whack....

Oh - and make sure to close and re-open XBMC after each change on the variation. This should reset the xbmc.log file.

Cheers!


- kiboy6 - 2010-01-26 12:37

Thanks for getting back to me Steppedup Smile

Well, there seems to be something a little screwy with my HTE script installation.

I did as you suggested and set HTE to play trailers from a test folder with only a few trailers in it.

Not only does it not seem to be setting any "watched status", but my whole XBMC hangs every second time I run the script. (I have to kill it with task manager)

Very strange....

Here's the debug log of me running HTE once, trailer not being marked as watched (I don't think) and then XBMC hanging when I try to start another movie with HTE :
http://pastebin.com/m29d08983

If you do have time to try and identify what's going on that would be super kind of you!


If it provides any clue, one other thing that is different is that HTE will now ONLY start playing clips via the button on a movies's info screen. Previously it would also start if i selected the script from the scripts menu and pressed "Enter".

Now if I do that, the "setting up playlist" window comes and goes and then nothing happens....Confused

Thanks so much again for any help!


Try uninstalling HTE and reinstalling it... - steppedup - 2010-01-26 20:05

So the reason it's hanging is because of an access violation:

19:29:07 T:3752 M:2788139008 DEBUG: CImageLoader::DoWork - took 138 ms to load special://masterprofile/Thumbnails/Video/Fanart/e9d96342.tbn
19:29:07 T:3804 M:2788618240 ERROR: CThread::staticThread : Access violation at 0x7729ac0f: Reading location 0x6731c712

And this happens after the HTE script gets run as you said.

I can't really tell from the log if HTE script is properly closing or not from the first time.

So, the access violation's root-cause might be from HTE - or something else.

Hmmm...

My recommendation is to first uninstall HTE, reboot your computer, bring up XBMC, close XBMC. Then, try to play the movie twice without HTE.

If you still have an issue, use the App Verifier to see where your access violation is occurring (never used it, but looks like it would do the trick). Or simply kill everything out of your system start-up menu, including msconfig.

If you don't still have an issue, reinstall HTE, and reconfigure it per specs.

Sorry I couldn't nail it down precisely - I'm an old hand at trouble-shooting, but brand-new to XBMC and HTE. Smile


- steppedup - 2010-01-27 09:47

Hi all - I've put together a quick batch job to delete all files older than 30 days on a Windows box. This will address a concern some folks had about the awesome script, Apple Trailer Downloader by Therms (thank you! Smile ).

Complete write-up is here.

I've highlighted the section where the batch job is - just look for this highlighted section:

[INDENT]But...the only problem with atd - it doesn't delete old files (and it's really not a problem unless you are slightly obsessive-compulsive like me Smile).
[/INDENT]
Otherwise, follow the complete guide if you're just starting out.


- kiboy6 - 2010-01-27 11:36

steppedup Wrote:If you don't still have an issue, reinstall HTE, and reconfigure it per specs.

Sorry I couldn't nail it down precisely - I'm an old hand at trouble-shooting, but brand-new to XBMC and HTE. Smile

Thanks so much for your kind efforts....seems as though something is a little borked in my HTE setup.

Tried everything you suggested - but still get the hangs every time call HTE twice in a row.

(Without HTE I can start any movies 100s times in a row without error....it always hangs on HTE's "setting up playlist" popup screen)
Couldn't get appverifier to provide any useful info.

I deleted the HTE folder from my scripts section as well as the HTE scriptdata folder. Anything else I can do to do a truly clean re-installation?



It does seem like the problem has something to do with the previous instance of HTE not quitting properly...

Anyway, I can live with that issue for now as it does always run properly the first time. But is there any clue in that log as to why the "watched" status is not being applied to my local trailers?

Incidentally as soon as i get this sorted your .bat file for auto deleting old trailers will be totally genius. I too am OCD to the extent where having to do so manually would definitely have made be pretty sad!


Intro Movies - Constructacon - 2010-01-28 00:22

Here are some intro movies for everyone. The first is a world zoom movie that I.... uhhh...... found (I would certainly never sample someone else's music). The second one I made with royalty free music samples. I have included a YouTube link to preview and a link to download the 720p quicktime file. Let me know what you think of them.

World Zoom:
YouTube
Download

Movie Genre List:
YouTube
Download


How to launch or kill XBMC by clicking on the Green Microsoft button of an MCE remote - steppedup - 2010-01-28 02:35

This actually is related to HTE, because a lot of us are spending a lot of time troubleshooting.

When troubleshooting XBMC, the XBMC team recommends that you close out XBMC and relaunch XBMC after each troubleshooting step so as to keep the debug log short and easy to read.

This procedure allows you to do that much quickly and easily than using your mouse to close out XBMC - and really helps to get rid of the keyboard once everything's working smoothly.

Code is below - and full write-up with script and fully compiled versions are here. Hope it helps someone!