diff options
author | Martijn Kaijser <mcm.kaijser@gmail.com> | 2017-12-10 09:41:11 +0100 |
---|---|---|
committer | Martijn Kaijser <mcm.kaijser@gmail.com> | 2017-12-10 09:41:11 +0100 |
commit | 165723ef45ea9e9395c27a0a27b02385bdeb83eb (patch) | |
tree | f5f24a079d7e40e2d011103e353c6fbb12d82331 /addons/metadata.common.imdb.com | |
parent | 46c9aa5da2a3a6bf7ecab2d55477080e676eadd7 (diff) |
[addons] sync scrapers with repo
Diffstat (limited to 'addons/metadata.common.imdb.com')
-rw-r--r-- | addons/metadata.common.imdb.com/addon.xml | 2 | ||||
-rw-r--r-- | addons/metadata.common.imdb.com/changelog.txt | 6 | ||||
-rw-r--r-- | addons/metadata.common.imdb.com/imdb.xml | 77 |
3 files changed, 42 insertions, 43 deletions
diff --git a/addons/metadata.common.imdb.com/addon.xml b/addons/metadata.common.imdb.com/addon.xml index c12395421b..b5763c2f0c 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 Scraper Library" - version="2.9.1" + version="2.9.3" provider-name="Team Kodi"> <requires> <import addon="xbmc.metadata" version="2.1.0"/> diff --git a/addons/metadata.common.imdb.com/changelog.txt b/addons/metadata.common.imdb.com/changelog.txt index cca5af3b74..b4543c7c86 100644 --- a/addons/metadata.common.imdb.com/changelog.txt +++ b/addons/metadata.common.imdb.com/changelog.txt @@ -1,3 +1,9 @@ +[B]2.9.3[/B] +- fixed: always get USA rating regardless of the country set + +[B]2.9.2[/B] +- changed: simplify ratings code + [B]2.9.1[/B] - changed: improved USA rating detection diff --git a/addons/metadata.common.imdb.com/imdb.xml b/addons/metadata.common.imdb.com/imdb.xml index 16bde91989..b5a5b35efb 100644 --- a/addons/metadata.common.imdb.com/imdb.xml +++ b/addons/metadata.common.imdb.com/imdb.xml @@ -28,34 +28,23 @@ </RegExp> </ParseIMDBRating> - <GetIMDBRatingsById dest="5"> - <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseIMDBRatings">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> - <expression noclean="1" /> + <GetIMDBRatingsById dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url cache="\1-main.html" function="ParseIMDBRatings">http://akas.imdb.com/title/\1/|accept-language=en-us</url></details>" dest="5"> + <expression noclean="1">^(tt\d+)</expression> + </RegExp> + <RegExp input="$$1" output="default="true"" dest="3"> + <expression clear="yes">\|default$</expression> </RegExp> </GetIMDBRatingsById> <ParseIMDBRatings dest="5"> <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<ratings><rating name="imdb" ><value>\1</value><votes>\2</votes></rating></ratings>" dest="2"> + <RegExp input="$$1" output="<ratings><rating name="imdb" $$3><value>\1</value><votes>\2</votes></rating></ratings>" dest="2"> <expression><span\sitemprop="ratingValue">([0-9.]+).*?ratingCount">([0-9,]+)<</expression> </RegExp> <expression noclean="1" /> </RegExp> </ParseIMDBRatings> - <GetIMDBRatingsByIdAsDef dest="5"> - <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseIMDBRatingsAsDef">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> - <expression noclean="1" /> - </RegExp> - </GetIMDBRatingsByIdAsDef> - <ParseIMDBRatingsAsDef dest="5"> - <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<ratings><rating name="imdb" default="true"><value>\1</value><votes>\2</votes></rating></ratings>" dest="2"> - <expression><span\sitemprop="ratingValue">([0-9.]+).*?ratingCount">([0-9,]+)<</expression> - </RegExp> - <expression noclean="1" /> - </RegExp> - </ParseIMDBRatingsAsDef> - <GetIMDBTOP250ById dest="5"> <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseIMDBTOP250">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> <expression noclean="1" /> @@ -102,47 +91,51 @@ </ParseIMDBCountry> <GetMetaCriticRatingById dest="5"> <!-- Compatibility function for Pre-Krypton versions--> - <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseMetaCriticRating">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> + <RegExp input="$$1" output="<details><url cache="$$1-criticreviews.html" function="ParseMetaCriticRating">http://akas.imdb.com/title/$$1/criticreviews|accept-language=en-us</url></details>" dest="5"> <expression noclean="1" /> </RegExp> </GetMetaCriticRatingById> <ParseMetaCriticRating dest="5"> <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<rating>\1.\2</rating>" dest="2"> - <expression><div\sclass="metacriticScore\sscore_[^\s]+\stitleReviewBarSubItem">.*?<span>(\d*)(\d)</expression> + <RegExp input="$$1" output="\1" dest="6"> + <expression noclean="1">(<div class="metascore_block".*)</expression> + </RegExp> + <RegExp input="$$6" output="<rating max="100">\1</value>" dest="2"> + <expression clear="yes"><span itemprop="ratingValue">(\d+)</span></expression> + </RegExp> + <RegExp input="$$6" output="<votes>\1</votes>" dest="2+"> + <expression><span itemprop="ratingCount">(\d+)</span></expression> </RegExp> <expression noclean="1" /> </RegExp> </ParseMetaCriticRating> - <GetMetaCriticRatingsById dest="5"> - <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseMetaCriticRatings">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> - <expression noclean="1" /> + <GetMetaCriticRatingsById dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url cache="\1-criticreviews.html" function="ParseMetaCriticRatings">http://akas.imdb.com/title/\1/criticreviews|accept-language=en-us</url></details>" dest="5"> + <expression noclean="1">(tt\d+)</expression> + </RegExp> + <RegExp input="$$1" output="default="true"" dest="3"> + <expression clear="yes">\|default$</expression> </RegExp> </GetMetaCriticRatingsById> <ParseMetaCriticRatings dest="5"> <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<ratings><rating name="metacritic" ><value>\1.\2</value></rating></ratings>" dest="2"> - <expression><div\sclass="metacriticScore\sscore_[^\s]+\stitleReviewBarSubItem">.*?<span>(\d*)(\d)</expression> + <RegExp input="$$4" output="<ratings><rating name="metacritic" max="100" $$3>\1</rating></ratings>" dest="2"> + <RegExp input="$$1" output="\1" dest="6"> + <expression clear="yes" noclean="1">(<div class="metascore_block".*)</expression> + </RegExp> + <RegExp input="$$6" output="<value>\1</value>" dest="4"> + <expression clear="yes"><span itemprop="ratingValue">(\d+)</span></expression> + </RegExp> + <RegExp input="$$6" output="<votes>\1</votes>" dest="4+"> + <expression><span itemprop="ratingCount">(\d+)</span></expression> + </RegExp> + <expression noclean="1" clear="yes"/> </RegExp> <expression noclean="1" /> </RegExp> </ParseMetaCriticRatings> - <GetMetaCriticRatingsByIdAsDef dest="5"> - <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseMetaCriticRatingsAsDef">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> - <expression noclean="1" /> - </RegExp> - </GetMetaCriticRatingsByIdAsDef> - <ParseMetaCriticRatingsAsDef dest="5"> - <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<ratings><rating name="metacritic" default="true"><value>\1.\2</value></rating></ratings>" dest="2"> - <expression><div\sclass="metacriticScore\sscore_[^\s]+\stitleReviewBarSubItem">.*?<span>(\d*)(\d)</expression> - </RegExp> - <expression noclean="1" /> - </RegExp> - </ParseMetaCriticRatingsAsDef> - <GetIMDBPlotById dest="5"> <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseIMDBPlot">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> <expression noclean="1" /> @@ -348,8 +341,8 @@ <RegExp input="$$1" output="<details><url cache="$$1-combined.html" function="ParseIMDBCountryCert">http://akas.imdb.com/title/$$1/combined|accept-language=en-us</url></details>" dest="5"> <expression noclean="1" /> </RegExp> - <RegExp input="$INFO[imdbcertcountry]" output="$$5" dest="5"> - <RegExp input="$$1" output="<details><url cache="$$1-combined.html" function="ParseIMDBUSACert">http://akas.imdb.com/title/$$1/combined|accept-language=en-us</url></details>" dest="5"> + <RegExp input="$INFO[imdbcertcountry]" output="$$2" dest="5"> + <RegExp input="$$1" output="<details><url cache="$$1-combined.html" function="ParseIMDBUSACert">http://akas.imdb.com/title/$$1/combined|accept-language=en-us</url></details>" dest="2"> <expression noclean="1"/> </RegExp> <expression>USA</expression> |