Author Topic: {item.artist[[, also, ]]} popup when asking "which artist is this"  (Read 2316 times)

0 Members and 1 Guest are viewing this topic.

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
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

Code: [Select]
<?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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: {item.artist[[, also, ]]} popup when asking "which artist is this"
« Reply #1 on: May 19, 2013, 06:53:13 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: {item.artist[[, also, ]]} popup when asking "which artist is this"
« Reply #2 on: May 19, 2013, 06:55:12 PM »
If you have time tomorrow we can look at it together.  Email me.

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: {item.artist[[, also, ]]} popup when asking "which artist is this"
« Reply #3 on: May 19, 2013, 07:06:02 PM »
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
« Last Edit: May 20, 2013, 01:38:55 PM by MrWolf »
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: {item.artist[[, also, ]]} popup when asking "which artist is this"
« Reply #4 on: May 20, 2013, 01:38:29 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: {item.artist[[, also, ]]} popup when asking "which artist is this"
« Reply #5 on: May 20, 2013, 02:13:37 PM »
Great, thanks for the update. :D