Need someone to explain just how the add-on management works in XBMC for scrapers.
So far i have it so scraperxml will create the Scraper, The settings, The language strings(needing to be defined by user), and zipping up the the entire package.
I just need some help in creating an addon.xml to drop beside it so it can easily be submitted to repositories, and being able to import easily from repositories. So i need to understand the addon.xml
for instance, 1lting.com scraper has three lines defining <extension>
Code:
<extension language="zh" library="1ting.xml" point="xbmc.metadata.scraper.albums"/>
<extension language="zh" library="1ting.xml" point="xbmc.metadata.scraper.artists"/>
<extension point="xbmc.addon.metadata">
<summary lang="en">1ting Scraper</summary>
<summary lang="se">1ting Musikskrapa</summary>
<summary lang="kr">1ting 음악 스크래퍼</summary>
<description lang="en">Download Music information from www.1ting.com</description>
<description lang="se">Ladda ner musikinformation från www.1ting.com</description>
<description lang="nl">Download muziek informatie van www.1ting.com</description>
<description lang="kr">www.1ting.com 에서 음악 정보 다운로드</description>
<platform>all</platform>
</extension>
three of these defining "point"
two out of the three points define the type of info it scrapes, the third defines that it is a metadata scraper. From this i gather that there are three different categories this would show up in... metadata, metadata.artist, metadata.albums... the part that confuses me, is that under the one that defines it as a metadata the format of info is completely different (and the languae of the scraper itself is left unused) I don't undersand why its descrption and summary is defined inside extension rather than as a child of the <addon> itself as seems logical to me, so i need this explained. because this makes it difficult to create a class to handle it not understanding why the info is available only under extension, if extension defines where this item is to appear in the add-on management, then the summary and description would appear with it ONLY where it is accessible in the add-on management, right?
So basically the question is why the above and not this?
Code:
<addon id="metadata.1ting.com" name="1ting" provider-name="Taxigps" version="1.0.1">
<requires>
<import addon="xbmc.metadata" version="1.0"/>
</requires>
<extension language="zh" library="1ting.xml" point="xbmc.metadata.scraper.albums"/>
<extension language="zh" library="1ting.xml" point="xbmc.metadata.scraper.artists"/>
<extension language="zh" library="1ting.xml" point="xbmc.addon.metadata"/>
<summary lang="en">1ting Scraper</summary>
<summary lang="se">1ting Musikskrapa</summary>
<summary lang="kr">1ting 음악 스크래퍼</summary>
<description lang="en">Download Music information from www.1ting.com</description>
<description lang="se">Ladda ner musikinformation från www.1ting.com</description>
<description lang="nl">Download muziek informatie van www.1ting.com</description>
<description lang="kr">www.1ting.com 에서 음악 정보 다운로드</description>
<platform>all</platform>
</addon>
I just need to undestand how it gets processed so i can handle it in the same manner.