aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.common.imdb.com
diff options
context:
space:
mode:
authortheuni <theuni-nospam-@xbmc.org>2012-01-19 02:53:58 -0500
committertheuni <theuni-nospam-@xbmc.org>2012-01-19 03:37:03 -0500
commitf9573f887b4460378d9b879de43a3e938dd1dc13 (patch)
tree97de1d7483a264273eb765e5e95f4190e62b256d /addons/metadata.common.imdb.com
parentbb78c28fafa074eb69564396da41753c47f81303 (diff)
sync: common.imdb with addons repo
Diffstat (limited to 'addons/metadata.common.imdb.com')
-rw-r--r--addons/metadata.common.imdb.com/addon.xml2
-rw-r--r--addons/metadata.common.imdb.com/changelog.txt8
-rw-r--r--addons/metadata.common.imdb.com/imdb.xml131
3 files changed, 83 insertions, 58 deletions
diff --git a/addons/metadata.common.imdb.com/addon.xml b/addons/metadata.common.imdb.com/addon.xml
index 29b8f54d81..66fe1e3346 100644
--- a/addons/metadata.common.imdb.com/addon.xml
+++ b/addons/metadata.common.imdb.com/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.common.imdb.com"
name="IMDB common scraper functions"
- version="2.1.3"
+ version="2.1.5"
provider-name="Team XBMC">
<requires>
<import addon="xbmc.metadata" version="1.0"/>
diff --git a/addons/metadata.common.imdb.com/changelog.txt b/addons/metadata.common.imdb.com/changelog.txt
index 0125b3a4dd..437fc1844d 100644
--- a/addons/metadata.common.imdb.com/changelog.txt
+++ b/addons/metadata.common.imdb.com/changelog.txt
@@ -1,3 +1,9 @@
+[B]2.1.5[/B]
+- fixed: Cleanup and factored out Genres to common
+
+[B]2.1.4[/B]
+- fixed: fetching directors and writers due to site changes
+
[B]2.1.3[/B]
- fixed: make sure IMDb rating is geting fetched in every region
@@ -38,4 +44,4 @@
- changed: adapted new IMDb layout
[B]1.0.5[/B]
-- fixed: tack /combined onto the end of the url to work around the new layout of IMDb \ No newline at end of file
+- fixed: tack /combined onto the end of the url to work around the new layout of IMDb
diff --git a/addons/metadata.common.imdb.com/imdb.xml b/addons/metadata.common.imdb.com/imdb.xml
index 69a9b4dcb6..78e4318077 100644
--- a/addons/metadata.common.imdb.com/imdb.xml
+++ b/addons/metadata.common.imdb.com/imdb.xml
@@ -1,64 +1,23 @@
<scraperfunctions>
- <GetIMDBRatingById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBRating&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBRatingById>
- <GetIMDBPlotById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBPlot&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBPlotById>
- <GetIMDBCastById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBCast&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBCastById>
- <GetIMDBScaledCastById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBScaledCast&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBScaledCastById>
- <GetIMDBDirectorsById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBDirectors&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBDirectorsById>
- <GetIMDBWritersById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBWriters&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <GetIMDBGenresById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBGenres&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1" />
</RegExp>
- </GetIMDBWritersById>
- <GetIMDBFullCastById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullCast&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBFullCastById>
- <GetIMDBScaledFullCastById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBScaledFullCast&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBScaledFullCastById>
- <GetIMDBFullDirectorsById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullDirectors&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBFullDirectorsById>
- <GetIMDBFullWritersById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullWriters&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
- <expression noclean="1" />
- </RegExp>
- </GetIMDBFullWritersById>
- <GetIMDBThumbsById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-posters.html&quot; function=&quot;ParseIMDBThumbs&quot;&gt;http://akas.imdb.com/title/$$1/posters&lt;/url&gt;&lt;/details&gt;" dest="5">
+ </GetIMDBGenresById>
+ <ParseIMDBGenres dest="5">
+ <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="2">
+ <expression repeat="yes">itemprop=&quot;genre&quot;[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;</expression>
+ </RegExp>
<expression noclean="1" />
</RegExp>
- </GetIMDBThumbsById>
- <GetIMDBTrailerById dest="5">
- <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;GetIMDBTrailerPage&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ </ParseIMDBGenres>
+
+ <GetIMDBRatingById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBRating&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1" />
</RegExp>
- </GetIMDBTrailerById>
+ </GetIMDBRatingById>
<ParseIMDBRating dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="2">
@@ -67,6 +26,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBRating>
+
+ <GetIMDBPlotById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBPlot&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBPlotById>
<ParseIMDBPlot dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="2">
@@ -75,6 +40,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBPlot>
+
+ <GetIMDBCastById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBCast&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBCastById>
<ParseIMDBCast dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
@@ -92,6 +63,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBCast>
+
+ <GetIMDBScaledCastById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBScaledCast&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBScaledCastById>
<ParseIMDBScaledCast dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
@@ -109,28 +86,46 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBScaledCast>
+
+ <GetIMDBDirectorsById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBDirectors&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBDirectorsById>
<ParseIMDBDirectors dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
<expression clear="yes" noclean="1">Director[s]?.*?&lt;/h4&gt;(.*?)&lt;div class</expression>
</RegExp>
<RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="2+">
- <expression repeat="yes" fixchars="1" clear="yes">&lt;a href=&quot;/name[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
+ <expression repeat="yes" fixchars="1" clear="yes">href=&quot;/name[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</ParseIMDBDirectors>
+
+ <GetIMDBWritersById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBWriters&quot;&gt;http://akas.imdb.com/title/$$1/&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBWritersById>
<ParseIMDBWriters dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1">Writer[s]?.*?&lt;/h4&gt;(.*?)&lt;div class</expression>
</RegExp>
<RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2+">
- <expression repeat="yes" fixchars="1">&lt;a href=&quot;/name[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
+ <expression repeat="yes" fixchars="1">href=&quot;/name[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</ParseIMDBWriters>
+
+ <GetIMDBFullCastById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullCast&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBFullCastById>
<ParseIMDBFullCast dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
@@ -145,6 +140,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBFullCast>
+
+ <GetIMDBScaledFullCastById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBScaledFullCast&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBScaledFullCastById>
<ParseIMDBScaledFullCast dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1" dest="6">
@@ -159,6 +160,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBScaledFullCast>
+
+ <GetIMDBFullDirectorsById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullDirectors&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBFullDirectorsById>
<ParseIMDBFullDirectors dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp conditional="fullcredits" input="$$1" output="\1" dest="6">
@@ -170,6 +177,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBFullDirectors>
+
+ <GetIMDBFullWritersById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-combined.html&quot; function=&quot;ParseIMDBFullWriters&quot;&gt;http://akas.imdb.com/title/$$1/combined&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBFullWritersById>
<ParseIMDBFullWriters dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp conditional="fullcredits" input="$$1" output="\1" dest="6">
@@ -181,6 +194,12 @@
<expression noclean="1" />
</RegExp>
</ParseIMDBFullWriters>
+
+ <GetIMDBThumbsById dest="5">
+ <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-posters.html&quot; function=&quot;ParseIMDBThumbs&quot;&gt;http://akas.imdb.com/title/$$1/posters&lt;/url&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1" />
+ </RegExp>
+ </GetIMDBThumbsById>
<ParseIMDBThumbs dest="5">
<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2" dest="4">