2015-02-16, 20:01
Hi,
I try to install an alpha of a self-developed scraper from a zip file.
Kodi (or XBMC, tried last version, too) won't go beyond telling me "Add-on does not have the correct structure".
The scraper xml runs fine in ScraperEdit.
The folder structure of the zipped archive is:
-metadata.movies.tvspielfilm.de
--addon.xml
--icon.png
--tvspielfilmde.xml
System is Mac OS 10.10.2.
Details of the xml files below.
Thanks for every hint!
y
The addon.xml reads:
And the scraper (tvspielfilmde.xml) reads:
I try to install an alpha of a self-developed scraper from a zip file.
Kodi (or XBMC, tried last version, too) won't go beyond telling me "Add-on does not have the correct structure".
The scraper xml runs fine in ScraperEdit.
The folder structure of the zipped archive is:
-metadata.movies.tvspielfilm.de
--addon.xml
--icon.png
--tvspielfilmde.xml
System is Mac OS 10.10.2.
Details of the xml files below.
Thanks for every hint!
y
The addon.xml reads:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.movies.tvspielfilm.de"
name="TV Spielfilm Filmarchiv Scraper"
version="0.0.1"
provider-name="N. N.">
<requires>
<import addon="xbmc.metadata" version="2.1.0"/>
</requires>
<extension point="xbmc.metadata.scraper.library"
library="tvspielfilmde.xml"/>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language>de</language>
<summary lang="de">TV Spielfilm Filmarchiv Scraper Library</summary>
<description lang="de">Suche und Download von Metadaten vom TV Spielfilm Filmarchiv (tvspielfilm.de)</description>
</extension>
</addon>
And the scraper (tvspielfilmde.xml) reads:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<scraper thumb="icon.png" date="2015-02-12" content="movies" framework="1.1" name="TV Spielfilm Filmarchiv">
<NfoUrl dest="3">
<RegExp dest="3" output="\1" input="$$1">
<expression></expression>
</RegExp>
</NfoUrl>
<CreateSearchUrl dest="3">
<RegExp dest="3" output="<url spoof="http://www.google.de">http://www.tvspielfilm.de/kino/filmarchiv/suche/?q=\1</url>" input="$$1">
<expression clear="yes" trim="1" encode="1"></expression>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp dest="8" output="<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><results>\1</results>" input="$$5">
<RegExp dest="5" output="<entity><title>\3. \2. \4</title><url>\1</url></entity>" input="$$1">
<expression clear="yes" repeat="yes"><article class="post">[\n \t]*<a href="(http://www\.tvspielfilm\.de/kino/filmarchiv/film/[^\n]+,[0-9]+,ApplicationMovie\.html)[^<]*<img src[^<]*<div [^<]*<span class="sub-title">([^<]*)</span>[^<]*<h3>([^<]*)</h3>[^<]*<p>([^<]*)</p></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSearchResults>
<GetDetails dest="3">
<RegExp dest="3" output="<details>\1</details>" input="$$8">
<RegExp dest="8" output="<title>\1</title>" input="$$1">
<expression noclean="1" trim="1"><h1 class="film-title">([^<]*)</h1></expression>
</RegExp>
<RegExp dest="8+" output="<votes>\1</votes>" input="$$6">
<RegExp dest="6" output="\1 \2/3 " input="$$1">
<expression clear="yes" repeat="yes" noclean="1" trim="1"><li[^<]*<span>([^<]*)</span>[^<]*<ul class="red-br-rating">[^<]*<li class="active([0-3])"></li></expression>
</RegExp>
<RegExp dest="6+" output="TVS: \1 " input="$$1">
<expression noclean="1" trim="1"><div class="editorial-rating big([1-3])"></div></expression>
</RegExp>
<RegExp dest="6+" output="Community: \2/5 " input="$$1">
<expression noclean="2" trim="2"><li[^<]*<span>([^<]*)</span>[^<]*<ul class="community-rating">[^<]*<li class="active([0-5])"></li></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
<RegExp dest="8+" output="<tagline>\1</tagline><outline>\2</outline>" input="$$1">
<expression noclean="1" trim="1"><div class="description-text">[^<]*<h3>([^<]*)</h3[^<]*<p>([^<]*)</p></expression>
</RegExp>
<RegExp dest="8+" output="\1" input="$$7">
<RegExp dest="7" output="<genre>\2</genre>" input="$$1">
<expression clear="yes" noclean="2" trim="2"><dt>Genre:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<originaltitle>\2</originaltitle>" input="$$1">
<expression noclean="2" trim="2"><dt>Originaltitel:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<country>\2</country>" input="$$1">
<expression noclean="2" trim="2"><dt>Land:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<year>\2</year>" input="$$1">
<expression noclean="2" trim="2"><dt>Jahr:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<runtime>\2</runtime>" input="$$1">
<expression noclean="2" trim="2"><dt>Länge:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<rating>\2</rating>" input="$$1">
<expression noclean="2" trim="2"><dt>Altersfreigabe:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<RegExp dest="7+" output="<director>\2</director>" input="$$1">
<expression noclean="2" trim="2"><dt>Regie:?</dt>[^<]*<dd>([^<]*<a [^>]*>)?([^<]*)(</a>)?<(dt|[^>]*)></expression>
</RegExp>
<expression repeat="yes" noclean="1" trim="1"></expression>
</RegExp>
<RegExp dest="8+" output="<actor><name>\2</name><role>\4</role></actor>" input="$$1">
<expression repeat="yes" noclean="2" trim="2"><span class="name">([^<]*<a [^>]*>)?([^<]*)(</a>)?[^<]*</span>[^<]*<span class="role">([^<]*)</span></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetDetails>
</scraper>