Author Topic: Large Payload XML Warning  (Read 10000 times)

0 Members and 3 Guests are viewing this topic.

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Large Payload XML Warning
« on: January 11, 2014, 07:40:03 AM »
Each time I generate XML from xSQL and restart VC, I get the warning:

Payload XML file XbmcPayload\xbmcSongs.xml contains 28,677 items.
Do you wish to load this command?

Is there a way I can stop this from being asked?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Large Payload XML Warning
« Reply #1 on: January 11, 2014, 09:01:39 AM »
 You really should see if there is a way to filter out some songs to reduce the size of that list.

...or if you are not using the play song command then you should just delete the command.

But yeah that was a new feature I was experimenting with and I forgot to turn it off.  I will fix it in the next release.

Sorry about that!

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Large Payload XML Warning
« Reply #2 on: January 11, 2014, 09:06:09 AM »
As one example of ways to filter the songs payloadXML to reduce the number of items, see: http://voxcommando.com/forum/index.php?topic=1318.msg11351#msg11351
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Large Payload XML Warning
« Reply #3 on: January 11, 2014, 10:01:36 AM »
Quote
But yeah that was a new feature I was experimenting with and I forgot to turn it off.  I will fix it in the next release.

This is a nice feature if VC will generate the xml by accident, maybe it is possible to have a check mark in the options menu to disable this feature (VoxCommando 2.0)   ;)
***********  get excited and make things  **********

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Large Payload XML Warning
« Reply #4 on: January 11, 2014, 12:00:11 PM »
For me, one of the absolute coolest features of VC is that I can say "play song..."
I'd hate to have to resort to using only a subset of my songs and then have to rank them all :(
There are no optimizations available to make large libraries easier to handle in VC?

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Large Payload XML Warning
« Reply #5 on: January 11, 2014, 12:26:53 PM »
It sounds like you're just getting an advisory message (which James says he'll remove). If the "play song" command is working for you and you use it a lot, the options are to either cope with the loading time or find a filtering method that's appropriate for your situation. It doesn't necessarily have to be by rating.

Coming up with a filtering method that's appropriate for your situation *is* the best method of optimizing the loading. (You can also turn off subset matching for that particular payloadXML, if you haven't yet. You'd then have to say the complete song title for the play song command to work. That is also a form of optimization.)

I just noticed that James provided another possible way for you to filter your songs.xml the other day, based on play count. http://voxcommando.com/forum/index.php?topic=1325.msg11411#msg11411

Why not try that for a week or so, and see how much it impacts things before deciding it's not an option?

If you're regularly asking to play songs that have never been played before, it will quickly become obvious and you'll know it's not the right solution for you. But if it ends up happening only rarely, in those cases you ask for the artist or album in order to find/play the desired song that one time, and then it will be added to your played songs list in short order -- problems solved.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Large Payload XML Warning
« Reply #6 on: January 11, 2014, 01:21:19 PM »
For me, one of the absolute coolest features of VC is that I can say "play song..."
I'd hate to have to resort to using only a subset of my songs and then have to rank them all :(
That is your choice.

There are no optimizations available to make large libraries easier to handle in VC?
Sure you can make them smaller, or you can use dictation.  The fact that you can have 30 thousand songs and ask for any one of them using only part of the song name is not impressive enough?

I  tried to add the line
Code: [Select]
System.Window.MakeitallFasterAndBetterAndUseLessMemoryToAchieveTheImpossible(true); but sadly it threw an error.  ::)

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Large Payload XML Warning
« Reply #7 on: January 11, 2014, 01:50:15 PM »
James, you got it all wrong, this is what you need to add:

Code: [Select]
System.Window.SatisfyCustomerNeeds(true);

See, all fixed! I can have my cake and eat it too  :biglaugh

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Large Payload XML Warning
« Reply #9 on: January 15, 2014, 03:11:26 PM »
Try this version:

https://www.dropbox.com/s/l6vvknfzwds3ph8/VC%20Setup%201.186.exe

The limit is 90K items, which is not to say that it will be able to load a library of that size, but it will not warn you.

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Large Payload XML Warning
« Reply #10 on: January 18, 2014, 06:57:12 PM »
thank you, reloaded without issue

Try this version:

https://www.dropbox.com/s/l6vvknfzwds3ph8/VC%20Setup%201.186.exe

The limit is 90K items, which is not to say that it will be able to load a library of that size, but it will not warn you.

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Large Payload XML Warning
« Reply #11 on: February 23, 2015, 11:22:09 AM »
I'm now on version 2.1.3.8 and still receiving the large payloadXML warning, is there perhaps a flag to suppress the message?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Large Payload XML Warning
« Reply #12 on: February 23, 2015, 11:32:54 AM »
What message are you receiving exactly?

And what version of the plugin do you have?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Large Payload XML Warning
« Reply #13 on: February 23, 2015, 11:43:03 AM »
Never mind.  I found it.  I was looking in xSql for this message but it's actually for any payloadXML.

I think I must have applied the 90K limit in version 1 only during the time that I was working on both versions simultaneously.

Anyway, I'm going to add an option so you can set the warning limit manually in options.

macrho

  • $upporter
  • Contributor
  • *****
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Large Payload XML Warning
« Reply #14 on: February 23, 2015, 11:44:25 AM »
Thanks much  8)