News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

{item.artist[[, also, ]]} popup when asking "which artist is this"

Started by MrWolf, May 19, 2013, 06:09:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrWolf

Hi gents,

Been having this issue for a while, but only just decided to do something about it.  I don't know how I ruined it, but you know me!

Baiscally, when I ask "Which artist is this I gt a popup and nothing happens until I close the pop up.  The pop up just says
range:{item.artist[[, also, ]]}

I presume Vox gets stuck whilst trying to carry out the XJson.ParseTokens part of the command but I can't see what's wrong, it works, but only once I've pressed OK.  Below is the XML

<?xml version="1.0" encoding="utf-16"?>
<command id="1062" name="get artist test" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>Player.GetItem&amp;&amp;"playerid":0, "properties": ["artist"]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.ParseTokens</cmdType>
    <cmdString>{item.artists[0]}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.ParseTokens</cmdType>
    <cmdString>{item.artist[[, also, ]]}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <cmdString>{LastResult}&amp;&amp;500</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.SpeakSync</cmdType>
    <cmdString>This song is by  {LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>


Cheers,

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

I don't think there is anything wrong with the xml because I dragged it into my tree and tested it, and it works fine.  So, need more info I guess.

jitterjames

If you have time tomorrow we can look at it together.  Email me.

MrWolf

I have about 20 minutes now before Neesha demands the PC for watching TV if you wanted to team viewer to my pc?

If you have Google talk you can add me

No worries if you're too busy now.

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

MrWolf

In case you get this message before the one on google talk, and in case it's useful for other people...  I sussed it out.

the xjson.dll file (In the JSON plugin folder) had somehow become corrupted (probably something I'd done).  I replaced it from a fresh install by pasting it over the top of the existing one and bingo, everything back to normal.

I came to the conclusion once you'd confirmed the XML was right, so cheers for the help all the same!

Thanks,

-P

Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames