Author Topic: Featured Movie / Recommended Movie  (Read 8698 times)

0 Members and 3 Guests are viewing this topic.

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Featured Movie / Recommended Movie
« on: March 03, 2012, 05:51:32 AM »
So I wanted a command that picks a random movie and TTS the Title and Plot. I was able to put one together but it has a hard time with movies that contain ' symbols. Ex. Ferris Bueller's Day Off.
Do you have any suggestions on how I can get this to work better?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Featured Movie / Recommended Movie
« Reply #1 on: March 03, 2012, 08:34:06 AM »
So I wanted a command that picks a random movie and TTS the Title and Plot. I was able to put one together but it has a hard time with movies that contain ' symbols. Ex. Ferris Bueller's Day Off.
Do you have any suggestions on how I can get this to work better?

Clever.  Can you please export a group containing only this command and then attach it to a post here, so I can experiment with it without having to copy every line by hand?

Also, you say "it has a hard time", but maybe you can be more specific about what is happening, or what is not working.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Featured Movie / Recommended Movie
« Reply #2 on: March 03, 2012, 09:05:49 AM »
do you want it to start playing the movie right away, or just show it?

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #3 on: March 03, 2012, 11:54:13 AM »
I wanted it just to show it like a recommendation. I have so many movies that some get lost in the bunch.
I see what the query is doing but not sure how to work around it. So with movies like "Man on Fire" it looks like this
queryvideodatabase(select c01 from movie where c00 = 'Man on Fire')

But with movies like "Ferris Bueller's Day Off" it looks like this
queryvideodatabase(select c01 from movie where c00 = 'Ferris Bueller's Day Off')
Its implementing the ' on Bueller's. So it's failing the last SQL statement

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Featured Movie / Recommended Movie
« Reply #4 on: March 03, 2012, 01:05:30 PM »
why are you using the payloadXML file:

 XbmcPayloads\xbmcMovies.xml

in your command?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Featured Movie / Recommended Movie
« Reply #5 on: March 03, 2012, 01:52:36 PM »
I think it makes more sense to request the movie title and the synopsis in a single request.

try the attached:
« Last Edit: March 03, 2012, 02:02:20 PM by jitterjames »

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #6 on: March 03, 2012, 02:51:26 PM »
Whoa...That was way easier than I was trying to make it. I tried something similar to this but the Title and Plot kept running together.

Thanks.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Featured Movie / Recommended Movie
« Reply #7 on: March 03, 2012, 04:27:39 PM »
any time.

by the way the XBMC.Filter command doesn't always work that well because of the way XBMC handles SMS filter keys.  You can only filter on a single word.  You'll notice for example if you try to filter on one of the star wars movies it will probably filter to show all the Star Wars movies, instead of just the one you want.

One solution would be to use something like

VC.TellVox       Find movie {match.1}

this will work as long as you have the command "Find Movie X" in your tree, which you should if you installed the standard XBMC configuration and did not remove this command.

This "tellvox" action will emulate the text as a spoken command (as though you said "find movie blah blah blah").  And the find movie command will generate a smart playlist which will return the correct movie, and only the correct movie.

 :yay
« Last Edit: March 03, 2012, 04:29:48 PM by jitterjames »

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #8 on: March 04, 2012, 06:49:47 PM »
Hello I like this command, was playing around with it a little today.

I was wondering if there was a way to put vox in standby mode until the TTS is done with the plot and then back to on mode when complete.

Vox picks up on the speech during the plot and just start opening up all kinds of stuff.

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #9 on: March 04, 2012, 07:21:10 PM »
NVM, This works for me...

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #10 on: March 04, 2012, 07:23:48 PM »
I'm not at home at the moment so i can't view the comand group or test anything.
But i guess you can just insert a VC.Standby command before your tts.speaksync and VC.On behind it...

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #11 on: March 04, 2012, 07:38:07 PM »
@jitterjames
Yeah I was using the XBMC.Filter because I was having trouble with the smartlist with ATV2. But I am now using HTPC so I will give it a try again.

@rablack97
I know you got it to work but was just wondering couldn't put VC.Off or VC.Standby before TTS.Stop or TTS.Speak How about, {match.1}.
And then change the TTS.Speak {match.2} to TTS. SpeakSync {match.2} and put a VC.On at the end…Like Dave I'm not home to test this either but just throwing my 2 cents in.
I personally use prefix and unless this command choices “Devil in the Blue Dress”..(my prefix name is Daphne…Lol)….I should be fine.

rablack97

  • $upporter
  • Sr. Member
  • *****
  • Posts: 100
  • Karma: 0
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #12 on: March 04, 2012, 07:53:55 PM »
Ah ok....

Took both of your advice....This works really well too.

thesystemera

  • $upporter
  • Sr. Member
  • *****
  • Posts: 125
  • Karma: 0
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #13 on: May 28, 2012, 01:33:38 AM »
Have you guys noticed it doesn't allways select the movie but rather the dirback button ".."

Is there any way to make the system go straight to the movie info page...  the one you activate by pressing 'I" on the keyboard...

Cheers all..

thesystemera

  • $upporter
  • Sr. Member
  • *****
  • Posts: 125
  • Karma: 0
    • View Profile
Re: Featured Movie / Recommended Movie
« Reply #14 on: May 28, 2012, 07:16:47 AM »
Also one more thing, would it be at all possible to include Genre in this...  It would be great if Anika [my four year old] and I could just say....  "Hey Brian, could you recommend us a 'family' movie". 

Neat idea....  I was showing it off earlier to her and it popped up with "Saw 5" oh on that note, can you tell Brian to shut up or something while reading the synopsis LOL...