diff options
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 | 7 | ||||
-rw-r--r-- | addons/metadata.common.imdb.com/imdb.xml | 76 |
3 files changed, 80 insertions, 5 deletions
diff --git a/addons/metadata.common.imdb.com/addon.xml b/addons/metadata.common.imdb.com/addon.xml index a1ac72594b..c12395421b 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.8.8" + version="2.9.1" 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 479fc31191..cca5af3b74 100644 --- a/addons/metadata.common.imdb.com/changelog.txt +++ b/addons/metadata.common.imdb.com/changelog.txt @@ -1,3 +1,10 @@ +[B]2.9.1[/B] +- changed: improved USA rating detection + +[B]2.9.0[/B] +- added: multiple ratings and uniqueid support (requires Kodi v17) +- fixed: another attempt to fix IMDb outline + [B]2.8.8[/B] - fixed: potential issue with IMDb outline (thanks scudlee) diff --git a/addons/metadata.common.imdb.com/imdb.xml b/addons/metadata.common.imdb.com/imdb.xml index a5ee72bb99..16bde91989 100644 --- a/addons/metadata.common.imdb.com/imdb.xml +++ b/addons/metadata.common.imdb.com/imdb.xml @@ -14,7 +14,7 @@ </RegExp> </ParseIMDBGenres> - <GetIMDBRatingById dest="5"> + <GetIMDBRatingById dest="5"> <!-- Compatibility function for Pre-Krypton versions--> <RegExp input="$$1" output="<details><url cache="$$1-main.html" function="ParseIMDBRating">http://akas.imdb.com/title/$$1/|accept-language=en-us</url></details>" dest="5"> <expression noclean="1" /> </RegExp> @@ -28,6 +28,34 @@ </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" /> + </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"> + <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" /> @@ -73,7 +101,7 @@ </RegExp> </ParseIMDBCountry> - <GetMetaCriticRatingById dest="5"> + <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"> <expression noclean="1" /> </RegExp> @@ -87,6 +115,34 @@ </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" /> + </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> + <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" /> @@ -125,6 +181,9 @@ <RegExp input="$$1" output="<outline>\1</outline>" dest="2"> <expression fixchars="1" trim="1">itemprop="description">(.+?)</div></expression> </RegExp> + <RegExp input="$$1" output="<outline>\1</outline>" dest="2"> + <expression fixchars="1" trim="1">itemprop="description">(.+?)See\sfull\ssummary</expression> + </RegExp> <expression noclean="1" /> </RegExp> </ParseIMDBOutline> @@ -278,7 +337,10 @@ </GetIMDBUSACert> <ParseIMDBUSACert dest="5"> <RegExp input="$$1" output="<details><mpaa>$INFO[certprefix]\1</mpaa></details>" dest="5"> - <expression>MPAA</a>:</h5><div\sclass="info-content">Rated\s([^<]*)</expression> + <expression>>\s*USA:(P?G|PG-13|R|NC-17)</a></expression> + </RegExp> + <RegExp input="$$1" output="<details><mpaa>$INFO[certprefix]\1</mpaa></details>" dest="5"> + <expression>MPAA</a>:</h5><div\sclass="info-content">Rated\s(P?G|PG-13|R|NC-17)</expression> </RegExp> </ParseIMDBUSACert> @@ -286,6 +348,12 @@ <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"> + <expression noclean="1"/> + </RegExp> + <expression>USA</expression> + </RegExp> </GetIMDBCountryCert> <ParseIMDBCountryCert dest="5"> <RegExp input="$$1" output="<details><mpaa>$INFO[certprefix]\1</mpaa></details>" dest="5"> @@ -406,4 +474,4 @@ </RegExp> </ParseIMDBAKATitles> -</scraperfunctions> +</scraperfunctions>
\ No newline at end of file |