diff options
author | Martijn Kaijser <mcm.kaijser@gmail.com> | 2012-11-14 22:45:34 +0100 |
---|---|---|
committer | Martijn Kaijser <mcm.kaijser@gmail.com> | 2012-11-14 22:45:34 +0100 |
commit | a68a288b4281bc962f0ed523e41f1387b10a682c (patch) | |
tree | 384f775b48c5cbde1f80dc9dcd5e6560e1c63584 /addons/metadata.common.theaudiodb.com/tadb.xml | |
parent | 363cc4ba6c3b972452f881879ccb2fef5e82ed42 (diff) |
[scrapers] add common.theaudiodb as it has become a dependency too universal scraper
Diffstat (limited to 'addons/metadata.common.theaudiodb.com/tadb.xml')
-rw-r--r-- | addons/metadata.common.theaudiodb.com/tadb.xml | 263 |
1 files changed, 263 insertions, 0 deletions
diff --git a/addons/metadata.common.theaudiodb.com/tadb.xml b/addons/metadata.common.theaudiodb.com/tadb.xml new file mode 100644 index 0000000000..a51edeb740 --- /dev/null +++ b/addons/metadata.common.theaudiodb.com/tadb.xml @@ -0,0 +1,263 @@ +<scraperfunctions> + <GetTADBArtistThumbsByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBArtistThumbs" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist.php?i=\1</url></details>" dest="5"> + <expression noclean="1" /> + </RegExp> + </GetTADBArtistThumbsByID> + <ParseTADBArtistThumbs dest="5" clearbuffers="no"> + <RegExp input="$$13" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="13"> + <expression /> + </RegExp> + <RegExp input="$$1" output="<thumb preview="\1/preview">\1</thumb>" dest="13"> + <expression repeat="yes">strArtistThumb\d?":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBArtistThumbs> + + <GetTADBArtistFanartsByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBArtistFanarts" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist.php?i=\1</url></details>" dest="5"> + <expression noclean="1" /> + </RegExp> + </GetTADBArtistFanartsByID> + <ParseTADBArtistFanarts dest="5" clearbuffers="no"> + <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="$$1" output="<thumb preview="\1/preview">\1</thumb>" dest="14"> + <expression repeat="yes">strArtistFanart\d?":"([^"]*)</expression> + </RegExp> + <RegExp input="$$14" output="\1" dest="13"> + <expression noclean="1">(.+)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBArtistFanarts> + + <GetTADBBiographyByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBBiography" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist.php?i=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBBiographyByID> + <GetTADBBiographyByMBID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBBiography" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist-mb.php?i=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBBiographyByMBID> + <ParseTADBBiography dest="5" clearbuffers="no"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="2"> + <expression /> + </RegExp> + <RegExp input="$$1" output="\1" dest="11"> + <expression clear="yes" fixchars="1">strBiography":"(.*?)","</expression> + </RegExp> + <RegExp input="$$11" output="$$12" dest="2"> + <RegExp input="$INFO[biogfbsource]" output="<chain function="GetLastFMFallbackBiographyByMBID">$$8</chain>" dest="12"> + <expression>last.fm</expression> + </RegExp> + <RegExp input="$INFO[biogfbsource]" output="<chain function="GetAMGFallbackBiographyByAMGID">$$9</chain>" dest="12"> + <expression>allmusic.com</expression> + </RegExp> + <expression>^$</expression> + </RegExp> + <RegExp input="$$11" output="<biography>\1</biography>" dest="2"> + <expression>(.+)</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </ParseTADBBiography> + + <GetTADBFMFallbackBiographyByMBID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBFallbackBiography" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist-mb.php?i=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBFMFallbackBiographyByMBID> + <ParseTADBFallbackBiography dest="5" clearbuffers="no"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="2"> + <expression /> + </RegExp> + <RegExp input="$$1" output="<biography>\1</biography>" dest="2"> + <expression clear="yes" fixchars="1">strBiography":"(.*?)","</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </ParseTADBFallbackBiography> + + <GetTADBDiscographyByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBDiscography">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?i=\1</url></details>" dest="5"> + <expression noclean="1" /> + </RegExp> + </GetTADBDiscographyByID> + <ParseTADBDiscography dest="5" clearbuffers="no"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="2"> + <expression /> + </RegExp> + <RegExp input="$$1" output="<album><year>\2</year><title>\1</title></album>" dest="2"> + <expression repeat="yes" clear="yes" fixchars="1" noclean="1">strAlbum":"([^"]*)","intYearReleased":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBDiscography> + + <GetTADBLifeSpanByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBLifeSpan" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist.php?i=\1</url></details>" dest="5"> + <expression noclean="1" /> + </RegExp> + </GetTADBLifeSpanByID> + <ParseTADBLifeSpan dest="5" clearbuffers="no"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="2"> + <expression /> + </RegExp> + <RegExp input="" output="" dest="11"> + <expression /> + </RegExp> + <RegExp input="$$1" output="<formed>\1</formed>" dest="11"> + <expression noclean="1">intFormedYear":"([^"]*)</expression> + </RegExp> + <RegExp input="$$1" output="<disbanded>\1</disbanded>" dest="11+"> + <expression noclean="1">strDisbanded":"([^"]*)</expression> + </RegExp> + <RegExp input="$$1" output="<born>\1</born>" dest="11"> + <expression noclean="1">intBornYear":"([^"]*)</expression> + </RegExp> + <RegExp input="$$1" output="<died>\1</died>" dest="11+"> + <expression noclean="1">intDiedYear":"([^"]*)</expression> + </RegExp> + <RegExp input="$$11" output="$$11" dest="2"> + <expression noclean="1"><(?:born|formed)*>(.+)</(?:born|formed)*></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </ParseTADBLifeSpan> + + <GetTADBArtistGenresByID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBArtistGenres" cache="tadb-\1-artist.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/artist.php?i=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBArtistGenresByID> + <ParseTADBArtistGenres dest="5" clearbuffers="no"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="" output="" dest="2"> + <expression /> + </RegExp> + <RegExp input="$$1" output="<genre>\1</genre>" dest="2"> + <expression noclean="1">strGenre":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBArtistGenres> + + + <GetTADBAlbumReviewByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumReview" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumReviewByID> + <GetTADBAlbumReviewByMBID dest="5" clearbuffers="no"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumReview">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album-mb.php?i=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumReviewByMBID> + <ParseTADBAlbumReview dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<review>\1</review>" dest="2"> + <expression fixchars="1">strDescription":"(.*?)","</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumReview> + + <GetTADBAlbumTitleByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumTitle" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumTitleByID> + <ParseTADBAlbumTitle dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<title>\1</title>" dest="2"> + <expression noclean="1">strAlbum":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumTitle> + + <GetTADBAlbumArtistByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumArtist" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumArtistByID> + <ParseTADBAlbumArtist dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<artist>\1</artist>" dest="2"> + <expression noclean="1">strArtist":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumArtist> + + <GetTADBAlbumDateByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumDate" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumDateByID> + <ParseTADBAlbumDate dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<year>\1</year>" dest="2"> + <expression noclean="1">intYearReleased":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumDate> + + <GetTADBAlbumGenresByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumGenres" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumGenresByID> + <ParseTADBAlbumGenres dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<genre>\1</genre>" dest="2"> + <expression noclean="1">strGenre":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumGenres> + + <GetTADBAlbumTracksByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumTracks">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/track.php?m=\1</details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumTracksByID> + <ParseTADBAlbumTracks dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<track><position>\3</position><title>\1</title><duration>\2</duration></track>" dest="2"> + <expression repeat="yes" trim="1" noclean="1,2,3">strTrack":"([^"]*)",".*?intCD".*?"intDuration":"(\d*?)\d{3}".*?intTrackNumber":"([^"]*)"</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumTracks> + + <GetTADBAlbumThumbsByID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseTADBAlbumThumbs" cache="tadb-\1-album.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/album.php?m=\1</url></details>" dest="5"> + <expression noclean="1"/> + </RegExp> + </GetTADBAlbumThumbsByID> + <ParseTADBAlbumThumbs dest="5"> + <RegExp input="$$2" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<thumb preview="\1/preview">\1</thumb>" dest="2"> + <expression repeat="yes">strAlbumThumb\d?":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </ParseTADBAlbumThumbs> + +</scraperfunctions> |