diff options
Diffstat (limited to 'addons/metadata.musicvideos.theaudiodb.com/tadb.xml')
-rw-r--r-- | addons/metadata.musicvideos.theaudiodb.com/tadb.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/addons/metadata.musicvideos.theaudiodb.com/tadb.xml b/addons/metadata.musicvideos.theaudiodb.com/tadb.xml new file mode 100644 index 0000000000..2305e2d09b --- /dev/null +++ b/addons/metadata.musicvideos.theaudiodb.com/tadb.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scraper framework="1.1" date="2012-06-10"> + <CreateSearchUrl dest="3"> + <RegExp input="$$1" output="<url>http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/searchtrack.php?s=\1&t=\2</url>" dest="3"> + <expression trim="1,2">(.+)%20%20%20(.+)</expression> + </RegExp> + </CreateSearchUrl> + <GetSearchResults dest="3"> + <RegExp input="$$5" output="<results>\1</results>" dest="3"> + <RegExp input="$$1" output="<entity><title>\5 - \3 [\4]</title><url cache="tadb-\1.json">http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/track.php?h=\1</url></entity>" dest="5"> + <expression repeat="yes" clear="yes" fixchars="1" noclean="1">idTrack":"([^"]*)","idAlbum":"([^"]*).*?"strTrack":"([^"]*)","strAlbum":"([^"]*)","strArtist":"([^"]*)</expression> + </RegExp> + <expression noclean="1" /> + </RegExp> + </GetSearchResults> + <GetDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<title>\1</title>" dest="5"> + <expression fixchars="1" noclean="1">strTrack":"([^"]*)"</expression> + </RegExp> + <RegExp input="$$1" output="<artist>\1</artist>" dest="5+"> + <expression fixchars="1" noclean="1">strArtist":"([^"]*)"</expression> + </RegExp> + <RegExp input="$$1" output="<album>\1</album>" dest="5+"> + <expression fixchars="1" noclean="1">strAlbum":"([^"]*)"</expression> + </RegExp> + <RegExp input="$$1" output="<plot>\1</plot>" dest="5+"> + <expression fixchars="1" noclean="1">strDescription":"(.*?)","</expression> + </RegExp> + <RegExp input="$$1" output="<genre>\1</genre>" dest="5+"> + <expression fixchars="1" noclean="1">strGenre":"([^"]*)"</expression> + </RegExp> + <RegExp input="$$1" output="<thumb>\1</thumb>" dest="5+"> + <expression fixchars="1" noclean="1">strTrackThumb":"([^"]*)"</expression> + </RegExp> + <RegExp conditional="fanarttvalbumthumbs" input="$$1" output="<chain function="GetFanartTvAlbumThumbsByMBID">\1</chain>" dest="5+"> + <expression fixchars="1" noclean="1">strMusicBrainzAlbumID":"([^"]*)"</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetDetails> +</scraper> |