diff options
Diffstat (limited to 'addons/com.1ting.scraper')
-rw-r--r-- | addons/com.1ting.scraper/1ting.xml | 92 | ||||
-rw-r--r-- | addons/com.1ting.scraper/default.tbn | bin | 0 -> 17047 bytes | |||
-rw-r--r-- | addons/com.1ting.scraper/description.xml | 21 |
3 files changed, 113 insertions, 0 deletions
diff --git a/addons/com.1ting.scraper/1ting.xml b/addons/com.1ting.scraper/1ting.xml new file mode 100644 index 0000000000..050e8170dd --- /dev/null +++ b/addons/com.1ting.scraper/1ting.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scraper framework="1.0" date="2009-12-27" name="1ting" content="albums" thumb="1ting.png" language="zh"> + <NfoUrl dest="3"> + <RegExp input="$$1" output="\1/" dest="3"> + <expression>(http://www.1ting.com/album/.*)</expression> + </RegExp> + </NfoUrl> + <CreateAlbumSearchUrl dest="3"> + <RegExp input="$$1" output="http://so.1ting.com/album.do?q=\1/" dest="3"> + <expression/> + </RegExp> + </CreateAlbumSearchUrl> + <GetAlbumSearchResults dest="8"> + <RegExp input="$$5" output="<results>\1</results>" dest="8"> + <RegExp input="$$1" output="<entity><url>\1</url><title>\2</title><artist>\3</artist><year>\4</year></entity>" dest="5"> + <expression repeat="yes" noclean="1,2,3,4"><a class="light" href="(http://www.1ting.com/album/.*?)" target="_blank">([^<]*)</a>.*?target="_blank">([^<]*)</a>.*?发行时间:([0-9]+)</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumSearchResults> + <GetAlbumDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<title>\1</title>" dest="5"> + <expression noclean="1">class="album_text">.*?<h3>([^<]*)<</expression> + </RegExp> + <RegExp input="$$1" output="<artist>\1</artist>" dest="5+"> + <expression noclean="1">歌手:<a href=.*?target="_self">([^<]*)<</expression> + </RegExp> + <RegExp input="$$1" output="<review>\1</review>" dest="5+"> + <expression><h3>专辑介绍</h3>(.*?)</div></expression> + </RegExp> + <RegExp input="$$1" output="<thumb>\1</thumb>" dest="5+"> + <expression noclean="1">class="album_pic">.*?img src="(http://img.1ting.com/images/.*?)"</expression> + </RegExp> + <RegExp input="$$1" output="<year>\1</year>" dest="5+"> + <expression noclean="1"><li>发行时间:([0-9]+)</expression> + </RegExp> + <RegExp input="$$1" output="<releasedate>\1</releasedate>" dest="5+"> + <expression noclean="1"><li>发行时间:([^<]*)<</expression> + </RegExp> + <RegExp input="$$1" output="<genre>\1</genre>" dest="5+"> + <expression noclean="1" trim="1" repeat="yes">href="http://www.1ting.com/genre/.*?>([^<|/]*)</expression> + </RegExp> + <RegExp input="$$1" output="<track><position>\1</position><title>\2</title></track>" dest="5+"> + <expression repeat="yes" trim="2"><td align="center">([0-9]+)</td>.*?title="([^"|-]*)</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumDetails> + <CreateArtistSearchUrl dest="3"> + <RegExp input="$$1" output="http://so.1ting.com/singer.do?q=\1/" dest="3"> + <expression/> + </RegExp> + </CreateArtistSearchUrl> + <GetArtistSearchResults dest="8"> + <RegExp input="$$5" output="<results>\1</results>" dest="8"> + <RegExp input="$$1" output="<entity><title>\2</title><url>\1</url></entity>" dest="5+"> + <expression repeat="yes"><a class="light" href="(http://www.1ting.com/singer/.*?)" target="_blank">([^<]*)</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistSearchResults> + <GetArtistDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<name>\1</name>" dest="5"> + <expression noclean="1"><h1>([^<]*)</h1></expression> + </RegExp> + <RegExp input="$$1" output="<born>\1</born>" dest="5+"> + <expression noclean="1"><li>生日:[\n\t ]*([0-9]+)-([0-9]+)-([0-9]+)</expression> + </RegExp> + <RegExp input="$$4" output="<biography>\1</biography>" dest="5+"> + <RegExp input="$$1" output="\1\n" dest="7"> + <expression noclean="1">详细资料</h3>(.*?)</ul></expression> + </RegExp> + <RegExp input="$$7" output="\1" dest="8"> + <expression repeat="yes" noclean="1">(.*?)[\n\t ]</expression> + </RegExp> + <RegExp input="$$8" output="\1\n" dest="4"> + <expression repeat="yes">(.*?)</li></expression> + </RegExp> + <expression/> + </RegExp> + <RegExp input="$$1" output="<thumb>\1</thumb>" dest="5+"> + <expression noclean="1">img src="(http://img.1ting.com/images/singer/[^"]*)"</expression> + </RegExp> + <RegExp input="$$1" output="<album><title>\1</title><year>\2</year></album>" dest="5+"> + <expression repeat="yes">title="专辑: [^"]*">([^<]*)</a></p> \n<p title="发行日期: [^"]*">([0-9]+)</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistDetails> +</scraper>
\ No newline at end of file diff --git a/addons/com.1ting.scraper/default.tbn b/addons/com.1ting.scraper/default.tbn Binary files differnew file mode 100644 index 0000000000..2c4c603e6f --- /dev/null +++ b/addons/com.1ting.scraper/default.tbn diff --git a/addons/com.1ting.scraper/description.xml b/addons/com.1ting.scraper/description.xml new file mode 100644 index 0000000000..906f847b5d --- /dev/null +++ b/addons/com.1ting.scraper/description.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<addoninfo> + <id>com.1ting.scraper</id> + <type>scraper</type> + <title>1ting</title> + <library>1ting.xml</library> + <version>1.0.0</version> + <platforms> + <platform>all</platform> + </platforms> + <minversion> + <xbmc>20000</xbmc> + </minversion> + <summary>1ting Scraper</summary> + <description>Download Music information from www.1ting.com</description> + <author>TAXIGPS</author> + <supportedcontent> + <content>albums</content> + <content>artists</content> + </supportedcontent> +</addoninfo> |