aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornadasb <nadasb@svn>2010-09-26 21:00:35 +0000
committernadasb <nadasb@svn>2010-09-26 21:00:35 +0000
commit91ec1fc310b107957a3de71f163ca36285cfe66c (patch)
treecfc19c2492473f344fbd5e72f0e45467e2bc12cc
parent7b3ab8d1f19bc95bfa3db3d600c1c4dd21e68ae6 (diff)
[metadata.common.htbackdrops.com] Added caching to avoid unnecessary server load
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34210 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--addons/metadata.common.htbackdrops.com/addon.xml2
-rw-r--r--addons/metadata.common.htbackdrops.com/htbackdrops.xml8
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/metadata.common.htbackdrops.com/addon.xml b/addons/metadata.common.htbackdrops.com/addon.xml
index dd8af20257..cbcaf0e45a 100644
--- a/addons/metadata.common.htbackdrops.com/addon.xml
+++ b/addons/metadata.common.htbackdrops.com/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.common.htbackdrops.com"
name="HTBackdrops"
- version="1.0.5"
+ version="1.0.6"
provider-name="Team XBMC">
<requires>
<import addon="xbmc.metadata" version="1.0"/>
diff --git a/addons/metadata.common.htbackdrops.com/htbackdrops.xml b/addons/metadata.common.htbackdrops.com/htbackdrops.xml
index 3c8f3038c6..ffac019386 100644
--- a/addons/metadata.common.htbackdrops.com/htbackdrops.xml
+++ b/addons/metadata.common.htbackdrops.com/htbackdrops.xml
@@ -1,26 +1,26 @@
<scraperfunctions>
<GetHTBThumbs dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseHTBThumbs&quot; post=&quot;yes&quot;&gt;http://htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/searchXML?keywords=\1&amp;default_operator=and&amp;aid=5&lt;/url&gt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseHTBThumbs&quot; post=&quot;yes&quot; cache=&quot;htb-images-\1.xml&quot;&gt;http://htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/searchXML?keywords=\1&amp;default_operator=and&amp;aid=1,5&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1" />
</RegExp>
</GetHTBThumbs>
<ParseHTBThumbs dest="5">
<RegExp input="$$13" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;thumb preview=&quot;http://www.htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/download/\1/thumbnail&quot;&gt;http://www.htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/download/\1/fullsize&lt;/thumb&gt;" dest="13">
- <expression repeat="yes" noclean="1">&lt;id&gt;([^&lt;]+)</expression>
+ <expression repeat="yes" noclean="1">&lt;id&gt;([^&lt;]+)&lt;/id&gt;\n[^&lt;]+&lt;album&gt;5&lt;/album&gt;</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
</ParseHTBThumbs>
<GetHTBFanart dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseHTBFanart&quot; post=&quot;yes&quot;&gt;http://htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/searchXML?keywords=\1&amp;default_operator=and&amp;aid=1&lt;/url&gt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseHTBFanart&quot; post=&quot;yes&quot; cache=&quot;htb-images-\1.xml&quot;&gt;http://htbackdrops.com/api/7681a907c805e0670330c694e788e8e8/searchXML?keywords=\1&amp;default_operator=and&amp;aid=1,5&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1" />
</RegExp>
</GetHTBFanart>
<ParseHTBFanart dest="5">
<RegExp input="$$13" output="&lt;details&gt;&lt;fanart url=&quot;http://www.htbackdrops.com/&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;thumb preview=&quot;api/7681a907c805e0670330c694e788e8e8/download/\1/thumbnail&quot;&gt;api/7681a907c805e0670330c694e788e8e8/download/\1/fullsize&lt;/thumb&gt;" dest="13">
- <expression repeat="yes" noclean="1">&lt;id&gt;([^&lt;]+)</expression>
+ <expression repeat="yes" noclean="1">&lt;id&gt;([^&lt;]+)&lt;/id&gt;\n[^&lt;]+&lt;album&gt;1&lt;/album&gt;</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>