Author Topic: how create special payloads  (Read 9152 times)

0 Members and 1 Guest are viewing this topic.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
how create special payloads
« on: April 28, 2011, 06:23:26 AM »
Hi James,

I need help.

How should the command look for MM "play Song abc by Artist xyz" for use with the special payload in option menue?
Can you give me a example? Thanks a lot  :hugs

Kalle
***********  get excited and make things  **********

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: how create special payloads
« Reply #1 on: April 28, 2011, 06:47:16 AM »
Hello Kalle,

This is "only" for use with iTunes, look this post where James explain about play Song abc by Artist xyz :
http://voxcommando.com/forum/index.php?topic=474.msg3450#msg3450

Wanilton
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: how create special payloads
« Reply #2 on: April 28, 2011, 07:00:52 AM »
Hello Kalle,

This is "only" for use with iTunes, look this post where James explain about play Song abc by Artist xyz :
http://voxcommando.com/forum/index.php?topic=474.msg3450#msg3450

Wanilton
Thanks for information, I hope there is a possibility for MM
***********  get excited and make things  **********

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: how create special payloads
« Reply #3 on: April 28, 2011, 07:03:54 AM »
I agree, for XBMC too...
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: how create special payloads
« Reply #4 on: April 28, 2011, 07:10:05 AM »
I agree, for XBMC too...
something like it might be, but knows not how
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: how create special payloads
« Reply #5 on: April 28, 2011, 08:12:06 AM »
You take one kid to the zoo, and then all the kids want to go to the zoo!

I am actually a bit surprised that people really want this feature.  You need to really know your library well to use it.  For me, just asking for the song name is sufficient, but I mostly request music using artist, or playlist names.

Kalle, you could do something like what you have shown in your image but it would be matching every song with every artist.

so you could say "play song yellow submarine by pink floyd" and the computer would understand, but there would be no song (I don't think they ever did a cover of this Beatles song  :)).  For it to really work well it needs to know in advance which artist is associated with each song, otherwise it is likely to make a mistake.

For now I can create a command similar to what you have shown here that should technically "work", so you can try it.

to create the real solution I will have to rewrite the genXML for both MM and XBMC to generate new special payloadXML files that look like this
Code: [Select]
    <payload>
        <value>D2EF2B89ABA0947B</value>
        <phrase>That Girl From Brownsville Texas&amp;&amp;Jim White</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>
    <payload>
        <value>CC5AE1F4E13E2C73</value>
        <phrase>All The Way From America&amp;&amp;Joan Armatrading</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>

as you can see the songtitle is paired with the correct artist, and the value is the exact ID of the song.

so, which one do I do first?? MM or XBMC?  ;)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: how create special payloads
« Reply #6 on: April 28, 2011, 08:32:04 AM »
You take one kid to the zoo, and then all the kids want to go to the zoo!

I am actually a bit surprised that people really want this feature.  You need to really know your library well to use it.  For me, just asking for the song name is sufficient, but I mostly request music using artist, or playlist names.

Kalle, you could do something like what you have shown in your image but it would be matching every song with every artist.

so you could say "play song yellow submarine by pink floyd" and the computer would understand, but there would be no song (I don't think they ever did a cover of this Beatles song  :)).  For it to really work well it needs to know in advance which artist is associated with each song, otherwise it is likely to make a mistake.

For now I can create a command similar to what you have shown here that should technically "work", so you can try it.

to create the real solution I will have to rewrite the genXML for both MM and XBMC to generate new special payloadXML files that look like this
Code: [Select]
   <payload>
        <value>D2EF2B89ABA0947B</value>
        <phrase>That Girl From Brownsville Texas&amp;&amp;Jim White</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>
    <payload>
        <value>CC5AE1F4E13E2C73</value>
        <phrase>All The Way From America&amp;&amp;Joan Armatrading</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>

as you can see the songtitle is paired with the correct artist, and the value is the exact ID of the song.

so, which one do I do first?? MM or XBMC?  ;)

Hi James, I want to give you any additional work, but it would be a nice feature.  :D  (I go later in the zoo, I did everything for myself, haha  ;D  )
Give Wanilton for  XBMC precedence, I have time and it's not really important  ;)

Thanks Kalle
« Last Edit: April 28, 2011, 08:37:46 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: how create special payloads
« Reply #7 on: April 28, 2011, 08:38:31 AM »
here is the command.  try it and you will see what I mean.  If you speak carefully it will work... but it can easily get the wrong artist for the song.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: how create special payloads
« Reply #8 on: April 28, 2011, 08:42:31 AM »
here is the command.  try it and you will see what I mean.  If you speak carefully it will work... but it can easily get the wrong artist for the song.

PERFECT, it works fine   :clap
***********  get excited and make things  **********

mclough6

  • $upporter
  • Sr. Member
  • *****
  • Posts: 105
  • Karma: 0
    • View Profile
Re: how create special payloads
« Reply #9 on: April 28, 2011, 09:42:44 PM »
I want to go to the zoo too!  :D  I agree that it is hard enough to remember a particular song, let alone the song and who it is by.  Having said that, the command play song X on album Y would at least be as useful.  For example I have two versions of Mark Knopfler's Speedway at Nazareth on two different albums.  When I ask for the song, it is always the version I do not prefer.  So it would be nice to be able to get to the song version I want.  But that is a minor issue at best.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: how create special payloads
« Reply #10 on: April 28, 2011, 09:52:01 PM »
I don´t go to zoo (this is a Joke), but i want this feature ok for use  in XBMC (this is a cool feature) IMO.

Wanilton
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: how create special payloads
« Reply #11 on: April 28, 2011, 10:04:13 PM »
I want to go to the zoo too!  :D  I agree that it is hard enough to remember a particular song, let alone the song and who it is by.  Having said that, the command play song X on album Y would at least be as useful.  For example I have two versions of Mark Knopfler's Speedway at Nazareth on two different albums.  When I ask for the song, it is always the version I do not prefer.  So it would be nice to be able to get to the song version I want.  But that is a minor issue at best.
one quick solution for this particular problem would be to change your play song command to sort songs with higher rated songs first.  If you don't rate your songs, you could probably do the same thing by having songs with a higher play count play first.

If you are interested in this I can help to adjust the command.  I wouldn't use it for album or artist requests because then you would aways hear the same songs, but for play song ABC I think it makes a lot of sense!  :bignod

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: how create special payloads
« Reply #12 on: April 28, 2011, 10:05:29 PM »
I don´t go to zoo (this is a Joke), but i want this feature ok for use  in XBMC (this is a cool feature) IMO.

Wanilton

I will definitely look into it!

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: how create special payloads
« Reply #13 on: April 28, 2011, 10:14:34 PM »
I will definitely look into it!

Thanks James, do you receive your Onkyo??
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: how create special payloads
« Reply #14 on: April 28, 2011, 10:53:46 PM »
NO!  I think it is being shipped from Japan by Donkey.