Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scrapers] add common.theaudiodb as it has become a dependency too un…
…iversal scraper
- Loading branch information
1 parent
363cc4b
commit a68a288
Showing
3 changed files
with
306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="metadata.common.theaudiodb.com" | ||
name="TheAudioDb Common Scraper Functions" | ||
version="1.2.0" | ||
provider-name="Team XBMC"> | ||
<requires> | ||
<import addon="xbmc.metadata" version="1.0"/> | ||
</requires> | ||
<extension point="xbmc.metadata.scraper.library" | ||
library="tadb.xml"/> | ||
<extension point="xbmc.addon.metadata"> | ||
<platform>all</platform> | ||
<minversion>20000</minversion> | ||
<summary lang="bg">Библиотека за сваляне на музикална инф. от TheAudioDb</summary> | ||
<summary lang="en">TheAudioDb Music Scraper Library</summary> | ||
<summary lang="de">Musik-Scraper für TheAudioDb.org</summary> | ||
<summary lang="es">Scraper de música de TheAudioDb</summary> | ||
<summary lang="fi">TheAudioDb musiikkitietojen lataajan kirjasto</summary> | ||
<summary lang="fr">Scraper TheAudioDb pour la musique</summary> | ||
<summary lang="hu">TheAudioDb zenei adat leolvasó</summary> | ||
<summary lang="nl">TheAudioDb-scraperfuncties</summary> | ||
<summary lang="pl">Scraper muzyki TheAudioDb</summary> | ||
<summary lang="pt">Scraper de música TheAudioDb</summary> | ||
<summary lang="ro">Bibliotecă catalog de muzică TheAudioDb</summary> | ||
<summary lang="ru">Музыкальная Информация TheAudioDb</summary> | ||
<summary lang="se">Skrapa för TheAudioDb.org</summary> | ||
<summary lang="zh">TheAudioDb音乐刮削器代码库</summary> | ||
<description lang="bg">Извлича инф. за музикални файлове от www.theaudiodb.com</description> | ||
<description lang="en">Download Music information from www.theaudiodb.com</description> | ||
<description lang="de">Downloade Musik Informationen von www.theaudiodb.com</description> | ||
<description lang="es">Descarga información musical de www.theaudiodb.com</description> | ||
<description lang="fi">Lataa musiikkitietoja osoitteesta www.theaudiodb.com</description> | ||
<description lang="fr">Télécharger les infos musicales depuis www.theaudiodb.com</description> | ||
<description lang="hu">Zene információk letöltése a www.theaudiodb.com webhelyről</description> | ||
<description lang="nl">Muziekinformatie ophalen van www.theaudiodb.com</description> | ||
<description lang="pl">Pobieraj informacje o muzyce z www.theaudiodb.com</description> | ||
<description lang="pt">Descarregar informação de música de www.theaudiodb.com</description> | ||
<description lang="ro">Descărcați informații muzică de pe www.theaudiodb.com</description> | ||
<description lang="ru">Загружать информацию о Музыке с www.theaudiodb.com</description> | ||
<description lang="se">Ladda ner musikinformation från www.theaudiodb.com</description> | ||
<description lang="zh">从www.theaudiodb.com下载音乐信息</description> | ||
</extension> | ||
</addon> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |