diff options
author | vdrfan <vdrfan@svn> | 2009-12-20 07:11:46 +0000 |
---|---|---|
committer | vdrfan <vdrfan@svn> | 2009-12-20 07:11:46 +0000 |
commit | f235603c4cccb2bbf2d163764f34f5b0a3b383c5 (patch) | |
tree | f6156f6728d7c7ea57b8330b39f77bf961c732de | |
parent | aa760aa635d36d3c9e27cb823503042400d2674d (diff) |
fixed: Ticket #8219 - Daum Movie Scraper Patch (thanks hojel!)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25870 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | system/scrapers/video/daum.xml | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/system/scrapers/video/daum.xml b/system/scrapers/video/daum.xml index f84bed4084..896c748d45 100644 --- a/system/scrapers/video/daum.xml +++ b/system/scrapers/video/daum.xml @@ -27,7 +27,7 @@ <GetSearchResults dest="8"> <RegExp input="$$5" output="<?xml version="1.0" encoding="UTF-8" standalone="yes"?><results>\1</results>" dest="8"> <RegExp input="$$1" output="<entity><title>\2(\4,\3) </title><url>http://movie.daum.net/moviedetail/moviedetailMain.do?movieId=\1</url></entity>" dest="5"> - <expression repeat="yes">class="fl srch"><a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=([0-9]*)"[^>]*>(.[^\(]*)\(([0-9]*)\)[^\%]*\%"[^"]*"cb"[^"]*"fs13[^"]*">(.[^\/]*)\/</expression> + <expression repeat="yes">class="fl srch"><a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=([0-9]+)"[^>]*>([^%]*)</a>[ ]*\(([0-9]+)\)</span>[^\(]*"fs13">([^"]*)</span</expression> </RegExp> <expression noclean="1"/> </RegExp> @@ -35,22 +35,38 @@ <GetDetails dest="3"> <RegExp input="$$8" output="<details>\1</details>" dest="3"> <!-- Titles, year !--> + <RegExp input="$$1" output="<title>\1</title><year>\2</year>" dest="8"> + <expression noclean="1">class="title_kor"[ ]*>([^<]+)</strong>[^\(]*\(.*?<?([0-9]+).*?title_AKA"[ ]*>[ \n]*<span class="eng">[ \n]*</span</expression> + </RegExp> + <RegExp input="$$1" output="<title>\1 (\3)</title><year>\2</year>" dest="8"> + <expression noclean="1">class="title_kor"[ ]*>([^<]+)</strong>[^\(]*\(.*?<?([0-9]+).*?title_AKA"[ ]*>[ \n]*<span class="eng">[ \n]*([^ \n][^<]*)</span</expression> + </RegExp> <RegExp input="$$1" output="<title>\1 (\3)</title><year>\2</year>" dest="8"> - <expression noclean="1">class="title_kor"><a[^>]*>(.[^<]*)</a></strong>[^>]*>\(<a[^>]*>([0-9]*)</a>\)[^"]*"title_AKA"[^"]*"eng">(.[^<]*)<</expression> + <expression noclean="1">class="title_kor"[ ]*>([^<]+)</strong>[^\(]*\(.*?<?([0-9]+).*?title_AKA"[ ]*>[ \n]*([^ \n].*?)<span class="eng">[ \n]*</span</expression> + </RegExp> + <RegExp input="$$1" output="<title>\1 (\3,\4)</title><year>\2</year>" dest="8+"> + <expression noclean="1">class="title_kor"[ ]*>([^<]+)</strong>[^\(]*\(.*?<?([0-9]+).*?title_AKA"[ ]*>([^"]+)"eng">([^<]*)</span</expression> </RegExp> <!-- Director's names !--> <RegExp input="$$7" output="<director>\1</director>" dest="8+"> <RegExp input="$$1" output="\1" dest="7"> - <expression noclean="1"><strong>감독</strong>(.*)<strong>등급</strong></expression> + <expression noclean="1"><strong>감독</strong>(.*?)<strong>출연</strong></expression> + </RegExp> + <expression noclean="1" repeat="yes"><a href=[^>]*>([^<]+)</a></expression> + </RegExp> + <!-- Studio !--> + <RegExp input="$$7" output="<studio>\1</studio>" dest="8+"> + <RegExp input="$$1" output="\1" dest="7"> + <expression noclean="1"><strong>제작/배급</strong>(.*?)<strong>감독</strong></expression> </RegExp> - <expression noclean="1" repeat="yes"><a[^>]*>(.[^<]*)</a></expression> + <expression noclean="1" repeat="yes"><a href="[^>]*>([^<]+)</a></expression> </RegExp> <!-- Actors !--> - <RegExp input="$$7" output="<actor><name>\1</name><role>\2</role><thumb>\3</thumb></actor>" dest="8+"> + <RegExp input="$$7" output="<actor><name>\2</name><role>\3</role><thumb>\1</thumb></actor>" dest="8+"> <RegExp input="$$1" output="\1" dest="7"> - <expression noclean="1">"div_actors"(.*)"netizenGrade"</expression> + <expression noclean="1">출연.*?"actors"(.*)"gradeWrap"</expression> </RegExp> - <expression noclean="1" repeat="yes">class="actor" title="(.[^\|]*)\|\|(.[^"]*)"><img src="(.[^"]*)"</expression> + <expression noclean="1" repeat="yes">class="cast_text"><img id="[^"]*"src="(.[^"]*)"[^>]*>[^>]*>(.[^<]*)</a>[^\(]*\((.[^\)]*)\)</expression> </RegExp> <!-- Tag Line !--> <RegExp input="$$7" output="<tagline>\1</tagline>" dest="8+"> @@ -60,11 +76,11 @@ <expression>class="txt">[^>]*>(.[^<]*)</b></expression> </RegExp> <!-- Plot !--> - <RegExp input="$$7" output="<plot>\1</plot>" dest="8+"> - <expression>class="txt">[^>]*>[^<]*</b><br>(.[^\t]*)\t</expression> + <RegExp input="$$1" output="<plot>\1</plot>" dest="8+"> + <expression><div class="txt"><table><tr><td>[^>]*>[^>]*></a>[^\t]*\t(.[^<]*)<</expression> </RegExp> - <RegExp input="$$7" output="<plot>\1</plot>" dest="8+"> - <expression>class="txt">\n\t\t(.[^\t]*)\t</expression> + <RegExp input="$$1" output="<plot>\1</plot>" dest="8+"> + <expression><div class="txt"><table><tr><td>[^\t]*\t(.[^<]*)<</expression> </RegExp> <!-- Single Poster !--> <RegExp conditional="!EnableThumbs" input="$$1" output="<thumb>\1</thumb>" dest="8+"> @@ -100,11 +116,8 @@ <expression><span class="fs11 fc3">\(([0-9]*)명 참여\)</span></expression> </RegExp> <!-- MPAA !--> - <RegExp input="$$7" output="<mpaa>\1</mpaa>" dest="8+"> - <RegExp input="$$1" output="\1" dest="7"> - <expression noclean="1"><strong>등급</strong></dt>[^>]*>(.[^<]*)</dd></expression> - </RegExp> - <expression noclean="1" trim="1">\b(.[^\t]*)\t</expression> + <RegExp input="$$1" output="<mpaa>\1</mpaa>" dest="8+"> + <expression noclean="1">icon_rating_[0-9]*\.gif" title="(.[^"]*)"</expression> </RegExp> <!-- Poster !--> <RegExp conditional="EnableThumbs" input="$$1" output="<url function="GetDaumPoster">\1</url>" dest="8+"> @@ -122,7 +135,7 @@ </RegExp> <!-- FanArts !--> <RegExp conditional="EnableFanArt" input="$$1" output="<url function="GetDAUMFanart">\1</url>" dest="8+"> - <expression noclean="1">class="title_kor"><a href="(.[^"]*)"</expression> + <expression noclean="1"><a class="tab1" href="(.[^"]*)"</expression> </RegExp> <!-- Writer !--> <RegExp conditional="EnableWriter" input="$$1" output="<url function="GetWriter">\1</url>" dest="8+"> @@ -134,13 +147,10 @@ <GetDaumPoster dest="8"> <RegExp input="$$9" output="<details>\1</details>" dest="8"> <RegExp input="$$1" output="\1" dest="7"> - <expression noclean="1">id="photo"(.*)id="steal"</expression> + <expression noclean="1">id="photo"(.*)id="photoViewer"</expression> </RegExp> <RegExp input="$$7" output="<thumb preview="http://\1/C155x225/\2">http://\1/image/\2</thumb>" dest="9"> - <expression noclean="1" repeat="yes"><img src="http://(.[^/]*)/C155x225/(.[^"]*)"</expression> - </RegExp> - <RegExp input="$$7" output="<thumb preview="http://movie.daum-img.net/movie/movie-photo/\1/\2/\3/155_225_\4">http://movie.daum-img.net/movie/movie-photo/\1/\2/\3/\4</thumb>" dest="9+"> - <expression noclean="1" repeat="yes"><img src="http://movie.daum-img.net/movie/movie-photo/([0-9]*)/([0-9]*)/([0-9]*)/[0-9]*_[0-9]*_(.[^"]*)"</expression> + <expression noclean="1" repeat="yes"><img src="http://([^/]+)/C155x225/([^"]+)"</expression> </RegExp> <expression noclean="1"/> </RegExp> @@ -152,7 +162,7 @@ </GetTMDBId> <GetTMDBFanart clearbuffers="no" dest="8"> <RegExp input="$$1" output="<thumb preview="http://themoviedb.org/image/backdrops/\1/\2_poster.\3">http://themoviedb.org/image/backdrops/\1/\2.\3</thumb>" dest="10+"> - <expression clear="yes" noclean="1" repeat="yes"><backdrop size="original">.*?/([0-9]+)/([^\.]+)\.([^<]*)</backdrop></expression> + <expression clear="yes" noclean="1" repeat="yes"><backdrop size="original">.*?/([0-9]+)/([^\.]+)\.([a-zA-Z]*)[^<]*</backdrop></expression> </RegExp> </GetTMDBFanart> <GetDAUMFanart clearbuffers="no" dest="8"> @@ -165,7 +175,7 @@ </GetDAUMFanart> <GetWriter dest="8"> <RegExp input="$$1" output="\1" dest="7"> - <expression noclean="1"><h5>각본</h5>(.*)<h5>촬영</h5></expression> + <expression noclean="1"><h5[ ]*>[ ]*각본</h5>(.*)<h5[ ]*>촬영</h5></expression> </RegExp> <RegExp input="$$6" output="<details>\1</details>" dest="8"> <RegExp input="$$7" output="<credits>\1</credits>" dest="6"> |