diff options
Diffstat (limited to 'addons/metadata.common.fanart.tv/fanarttv.xml')
-rw-r--r-- | addons/metadata.common.fanart.tv/fanarttv.xml | 65 |
1 files changed, 62 insertions, 3 deletions
diff --git a/addons/metadata.common.fanart.tv/fanarttv.xml b/addons/metadata.common.fanart.tv/fanarttv.xml index a590303270..3f3d2871de 100644 --- a/addons/metadata.common.fanart.tv/fanarttv.xml +++ b/addons/metadata.common.fanart.tv/fanarttv.xml @@ -14,7 +14,7 @@ <expression /> </RegExp> <RegExp input="$$1" output="\1" dest="16"> - <expression noclean="1">"artistthumb":\s\[(.*?)\}\s*\],</expression> + <expression noclean="1">"artistthumb":\s\[(.*?)\}\s*\]</expression> </RegExp> <RegExp input="$$16" output="<thumb preview="\1/preview">\1</thumb>" dest="13"> <expression repeat="yes" noclean="1">"id":\s"\d*",\s*"url":\s"([^"]*)</expression> @@ -40,7 +40,7 @@ <expression /> </RegExp> <RegExp input="$$1" output="\1" dest="16"> - <expression noclean="1">"artistbackground":\s\[(.*?)\}\s*\],</expression> + <expression noclean="1">"artistbackground":\s\[(.*?)\}\s*\]</expression> </RegExp> <RegExp input="$$16" output="<thumb preview="\1/preview">\1</thumb>" dest="14"> <expression repeat="yes" noclean="1">"id":\s"\d*",\s*"url":\s"([^"]*)</expression> @@ -66,7 +66,7 @@ <expression /> </RegExp> <RegExp input="$$1" output="\1" dest="16"> - <expression noclean="1">"albumcover":\s\[(.*?)\}\s*\],</expression> + <expression noclean="1">"albumcover":\s\[(.*?)\}\s*\]</expression> </RegExp> <RegExp input="$$16" output="<thumb preview="\1/preview">\1</thumb>" dest="13"> <expression repeat="yes" noclean="1">"id":\s"\d*",\s*"url":\s"([^"]*)</expression> @@ -74,4 +74,63 @@ <expression noclean="1" /> </RegExp> </ParseFanartTvAlbumThumbs> + + <GetFanartTvFanartByIdChain dest="4"> + <RegExp input="$$5" output="<details>\1</details>" dest="4"> + <RegExp input="$$1" output="<url function="ParseFanartTvFanart" cache="fanarttv-\1.json">http://webservice.fanart.tv/v3/movies/\1?api_key=ed4b784f97227358b31ca4dd966a04f1</url>" dest="5"> + <expression /> + </RegExp> + <expression noclean="1" /> + </RegExp> + </GetFanartTvFanartByIdChain> + <ParseFanartTvFanart dest="5"> + <RegExp input="$$13" output="<details><fanart>\1</fanart></details>" dest="5"> + <RegExp input="" output="" dest="13"> + <expression /> + </RegExp> + <RegExp input="" output="" dest="14"> + <expression /> + </RegExp> + <RegExp input="" output="" dest="16"> + <expression /> + </RegExp> + <RegExp input="$$1" output="\1" dest="16"> + <expression noclean="1">"moviebackground":\s\[(.*?)\}\s*\]</expression> + </RegExp> + <RegExp input="$$16" output="<thumb preview="\1/preview">\1</thumb>" dest="14"> + <expression repeat="yes" noclean="1">"id":\s"\d*",\s*"url":\s"([^"]*)</expression> + </RegExp> + <RegExp input="$$14" output="\1" dest="13"> + <expression noclean="1">(.+)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseFanartTvFanart> + + <GetFanartTvThumbsByIdChain dest="4"> + <RegExp input="$$5" output="<details>\1</details>" dest="4"> + <RegExp input="$$1" output="<url function="ParseFanartTvThumbs" cache="fanarttv-\1.json">http://webservice.fanart.tv/v3/movies/\1?api_key=ed4b784f97227358b31ca4dd966a04f1</url>" dest="5"> + <expression /> + </RegExp> + <expression noclean="1" /> + </RegExp> + </GetFanartTvThumbsByIdChain> + <ParseFanartTvThumbs dest="5"> + <RegExp input="$$13" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="13"> + <expression /> + </RegExp> + <RegExp input="" output="" dest="16"> + <expression /> + </RegExp> + <RegExp input="$$1" output="\1" dest="16"> + <expression noclean="1">"movieposter":\s\[(.*?)\}\s*\]</expression> + </RegExp> + <RegExp input="$$16" output="<thumb preview="\1/preview">\1</thumb>" dest="13"> + <expression repeat="yes" noclean="1">"id":\s"\d*",\s*"url":\s"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseFanartTvThumbs> + </scraperfunctions> |