Author Topic: Xbmc add on databases  (Read 1896 times)

0 Members and 1 Guest are viewing this topic.

Darthvuder2

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 0
    • View Profile
Xbmc add on databases
« on: April 18, 2015, 03:13:04 PM »
New user here,
Vox commando working well with ftodo
Was wondering if anyone has found a way to make a payload xml from the entire list of an add on database
For example, could I automatically generate a list of every tv show that genesis has in its database

Another user made a program to automatically bring up a search box for an add on (1channel)and then fill in a search term. But I think this requires him to manually make a file containing all names so vox commander can recognize the movie or show names

I'd like to have a list created of all the tvs and movies so when I voice search for a show I've never considered before, it will bring it up

Is this possible?

Thanks

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Xbmc add on databases
« Reply #1 on: April 18, 2015, 04:24:14 PM »
The ability to generate payload xml for titles available via addons will depend on the addon. You mention Genesis. If I'm understanding their documentation correctly, it seems as though Genesis allows users to integrate all their titles to Kodi's TV database and Movies database. https://seo-michael.co.uk/how-to-integrate-genesis-with-xbmc-library/

If that is really the case and you have done that, then I think you could simply generate your TV and Movie payload xml files the usual way, and these files should contain the Genesis data. (I'm not sure though.)

In general, the addon media data is not stored in Kodi's databases -- just the basic settings or info about which addons a user has installed. The media data is usually located externally, somewhere online.

In the case of the user who's relying on the 1channel search, he is using payload dictation. This is a reasonable option for native speakers who are using VoxCommando (not VoxCommandoSP) depending on your microphone setup.

The caveat regarding loading large payload XML files is worth keeping in mind, depending on the size of an addon's database (see the wiki page on loading payload XML for large music libraries).

For any addon that has a website or online database that users can scrape, it's usually not too hard to use a scrape action and some basic regular expressions to generate the relevant payload xml.

Or, you could scrape any site online to generate your list, with the risk that your addon may not contain all of those titles.

For example, I can easily create a payloadXML of 1900 TV series titles using this imdb page: http://www.imdb.com/list/ls051178000/

Here is the command:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="592" name="scrape TV series" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>PayloadXML.Clear</cmdType>
    <params>
      <param>payloads\TopTV.xml</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://www.imdb.com/list/ls051178000/</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Tools.Unescape</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>src='/rg/item-title/list/images/.*?href="/title/.*?&gt;(.*?)&lt;/a&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.MatchToXML</cmdType>
    <params>
      <param>payloads\TopTV.xml</param>
      <param />
      <param>True</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>scrape TV series</phrase>
</command>

The same basic premise would apply to scraping data for a particular addon's database, if they make that data accessible somehow.
« Last Edit: April 18, 2015, 06:14:15 PM by nime5ter »
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)