Author Topic: XBMC Frodo Browse Movies Smart Playlist Help  (Read 3137 times)

0 Members and 1 Guest are viewing this topic.

RichPyke

  • $upporter
  • Jr. Member
  • *****
  • Posts: 6
  • Karma: 0
    • View Profile
XBMC Frodo Browse Movies Smart Playlist Help
« on: May 06, 2013, 07:59:25 AM »
XBMC Frodo 12.1
VoxCommando 0.9.8.4

When I use the example code for browse movies by actor, or by studio (or anything really) the list shows blank...


This used to work really well but I can only assume Frodo works differently. Has anyone found out what needs changing? I haven't seen anything on here about it so thought I would ask before I start looking in to it (my voxcommando and xbmc abilities are not exactly great)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Frodo Browse Movies Smart Playlist Help
« Reply #1 on: May 06, 2013, 08:18:34 AM »
Hi Rich.  To which "example code" are you referring?

Frodo changed almost everything.  When you install VC you must select the Frodo configuration. Most commands for Eden won't work.

http://voxcommando.com/forum/index.php?topic=986.0

RichPyke

  • $upporter
  • Jr. Member
  • *****
  • Posts: 6
  • Karma: 0
    • View Profile
Re: XBMC Frodo Browse Movies Smart Playlist Help
« Reply #2 on: May 08, 2013, 03:14:22 PM »
You know what, I have no idea where I got this from since it's not in the command bin now... but this is what I am using (which doesn't work).

Any ideas would be great however I appreciate you are probably busy so don't rush about it, when I get chance I will try to solve it myself anyway :)

Code: [Select]
<command id="817" name="Find Actor" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.SmartPL</cmdType>
                <cmdString>smarts\MovieByActor.xsp&amp;&amp;{2}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>VC.Pause</cmdType>
                <cmdString>300</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{1}&amp;&amp;Play</ifParams>
                <then>
                    <action>
                        <cmdType>XJson.Raw</cmdType>
                        <cmdString>Playlist.Clear&amp;&amp;"playlistid": 1</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>XJson.Raw</cmdType>
                        <cmdString>Playlist.Add&amp;&amp;"playlistid": 1, "item": {"file": "special://profile/playlists/mixed/voxsmart.xsp"}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>XJson.Raw</cmdType>
                        <cmdString>Player.Open&amp;&amp;"item": {"playlistid": 1}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>XJson.Raw</cmdType>
                        <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "special://profile/playlists/mixed/voxsmart.xsp" ]</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <payloadList>Find, Search, Show</payloadList>
            <phrase>film, films, movie, movies</phrase>
            <phrase>with</phrase>
            <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">XbmcPayloads\xbmcMovieActors.xml</payloadFromXML>
        </command>

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC Frodo Browse Movies Smart Playlist Help
« Reply #3 on: May 08, 2013, 04:22:01 PM »
Wow.  I must say this is a total mystery to me.  I don't know where any of this stuff comes from!

The action part of this command is really easy though, using a much simpler method:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="817" name="Find Actor" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "videodb://1/4/{1}" ]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Find, Search, Show</phrase>
  <phrase>film, films, movie, movies</phrase>
  <phrase>with</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">XbmcPayloads\xbmcMovieActors.xml</payloadFromXML>
</command>

The problem is with the creation of the payloadXML.  It is actually quite easy if you are using the XSql plugin, but I have no idea how to do it using XJson!

If you are using the XSql plugin you can go to plugin settings and add the following to the table "Output (XML Payload Files)"

create a new row at the bottom with
Type: Video
Query: select idActor,strActor from actors where idActor in (select idActor from actorlinkmovie)
Filename: xbmcMovieActors

...and it's up to you if you want to select "sub" which means you only need to say part of the actors name.