-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd00c37
Showing
10 changed files
with
982 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="metadata.movie.daum.net" | ||
name="Daum Movie" | ||
version="2.0.2" | ||
provider-name="XBMC-Korea"> | ||
<requires> | ||
<import addon="xbmc.metadata" version="1.0"/> | ||
<import addon="metadata.common.themoviedb.org" version="2.9" optional="true"/> | ||
</requires> | ||
<extension point="xbmc.metadata.scraper.movies" | ||
language="ko" | ||
library="daum-movie.xml"/> | ||
<extension point="xbmc.addon.metadata"> | ||
<summary lang="en">Daum Movie Scraper</summary> | ||
<summary lang="hu">Daum Film scraper</summary> | ||
<summary lang="ko">다음 영화 스크래퍼</summary> | ||
<summary lang="pt">Scraper de filmes Daum</summary> | ||
<description lang="en">Download movie information from movie.daum.net</description> | ||
<description lang="hu">Film információk letöltése a movie.daum.net webhelyről</description> | ||
<description lang="kr">movie.daum.net에서 영화 정보 다운로드</description> | ||
<description lang="pt">Descarregar informação de filmes de movie.daum.net</description> | ||
<platform>all</platform> | ||
</extension> | ||
</addon> |
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,16 @@ | ||
2.0.2 | ||
|
||
Changes | ||
- set <originaltitle> | ||
- improve extraction for writer | ||
- pick trailer from video clips | ||
|
||
2.0.0 | ||
|
||
Changes | ||
- full revision based on JSON API | ||
|
||
1.0.0 | ||
|
||
Changes | ||
- Initial addon version |
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,215 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scraper framework="1.1" date="2013-01-30"> | ||
<NfoUrl dest="3"> | ||
<RegExp input="$$1" output="<details><url cache="daum-movie-\1.json">http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url><id>\1</id></details>" dest="3"> | ||
<expression clear="yes" noclean="1">movie\.daum\.net[^\?]*\?movieId=(\d*)</expression> | ||
</RegExp> | ||
</NfoUrl> | ||
<CreateSearchUrl dest="3"> | ||
<RegExp input="$$1" output="<url>http://movie.daum.net/search.do?type=movie&q=\1</url>" dest="3"> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</CreateSearchUrl> | ||
<GetSearchResults dest="4"> | ||
<RegExp input="$$5" output="<?xml version="1.0" encoding="UTF-8" standalone="yes"?><results>\1</results>" dest="4"> | ||
<RegExp conditional="!OrigTitleInSrchResult" input="$$1" output="<entity><title>\2</title><year>\3</year><id>\1</id><url cache="daum-movie-\1.json">http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url></entity>" dest="5"> | ||
<expression repeat="yes" trim="2">class="fl srch"><a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^>]*>([^"]*)</a>\s*\((\d+)\)</span>[^\(]*"fs13">([^"]*)</span</expression> | ||
</RegExp> | ||
<RegExp conditional="OrigTitleInSrchResult" input="$$6" output="\1" dest="5"> | ||
<RegExp input="$$1" output="<entity><title>\2(\4)</title><year>\3</year><id>\1</id><url cache="daum-movie-\1.json">http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url></entity>" dest="6"> | ||
<expression repeat="yes" trim="2,4">class="fl srch"><a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^>]*>([^"]*)</a>\s*\((\d+)\)</span>[^\(]*"fs13">\s*([^"]+)</span</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<entity><title>\2</title><year>\3</year><id>\1</id><url cache="daum-movie-\1.json">http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url></entity>" dest="6+"> | ||
<expression repeat="yes" trim="2">class="fl srch"><a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^>]*>([^"]*)</a>\s*\((\d+)\)</span>[^\(]*"fs13">\s*</span</expression> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetSearchResults> | ||
<GetDetails dest="3"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="3"> | ||
<RegExp input="$$1" output="<id>\1</id>" dest="5"> | ||
<expression>"movieId":(\d*)</expression> | ||
</RegExp> | ||
<RegExp conditional="!combiTitle" input="$$1" output="<title>\1</title>" dest="5+"> | ||
<expression clean="1">"titleKo":"(.*?)",</expression> | ||
</RegExp> | ||
<RegExp conditional="combiTitle" input="$$6" output="<title>\1</title>" dest="5+"> | ||
<RegExp input="$$1" output="\1" dest="6"> | ||
<expression clean="1">"titleKo":"(.*?)",</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output=" (\1)" dest="6+"> | ||
<expression>"titleEn":"([^"]+)",</expression> | ||
</RegExp> | ||
<expression /> | ||
</RegExp> | ||
<RegExp input="$$1" output="<year>\1</year>" dest="5+"> | ||
<expression>"prodYear":(\d+)</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<runtime>\1</runtime>" dest="5+"> | ||
<expression>"showtime":(\d+)</expression> | ||
</RegExp> | ||
<!-- <studio> --> | ||
<RegExp input="$$6" output="<country>\1</country>" dest="5+"> | ||
<RegExp input="$$1" output="\1" dest="6"> | ||
<expression>"countries":\[(.*?)\]</expression> | ||
</RegExp> | ||
<expression repeat="yes">"countryKo":"(.*?)"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<premiered>\1-\2-\3</premiered>" dest="5+"> | ||
<expression>"releaseDate":"(\d{4})(\d{2})(\d{2})"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<tagline>\1</tagline>" dest="5+"> | ||
<expression>"mainCopy":"(.*?)"</expression> | ||
</RegExp> | ||
<RegExp conditional="!CleanPlotText" input="$$1" output="<plot>\1</plot>" dest="5+"> | ||
<expression>"plot":"(.*?)"</expression> | ||
</RegExp> | ||
<RegExp conditional="CleanPlotText" input="$$6" output="<plot>\1</plot>" dest="5+"> | ||
<RegExp input="$$7" output="\1" dest="6"> | ||
<RegExp input="$$1" output="\1" dest="7"> | ||
<expression>"plot":"(.*?)"</expression> | ||
</RegExp> | ||
<expression repeat="yes" noclean="1">(?:\\r|(\\[^r]|[^\\]))</expression> | ||
</RegExp> | ||
<expression trim="1" /> | ||
</RegExp> | ||
<RegExp input="$$6" output="<genre>\1</genre>" dest="5+"> | ||
<RegExp input="$$1" output="\1" dest="6"> | ||
<expression>"genres":\[(.*?)\]</expression> | ||
</RegExp> | ||
<expression repeat="yes">"genreName":"(.*?)"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<rating>\1</rating>" dest="5+"> | ||
<expression>"inspectPointAvg":(\d\.\d)</expression> | ||
</RegExp> | ||
<!-- <votes> --> | ||
<RegExp input="$$1" output="<mpaa>\1</mpaa>" dest="5+"> | ||
<expression>"admissionDesc":"(.*?)"</expression> | ||
</RegExp> | ||
<!-- poster thumb --> | ||
<RegExp input="$$6" output="<thumb>\1</thumb>" dest="5+"> | ||
<RegExp input="$$1" output="\1" dest="6"> | ||
<expression>"photo":{(.*?)}</expression> | ||
</RegExp> | ||
<expression>"fullname":"(.*?)"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<chain function="GetTMDBInfoByNameChain">\1</chain>" dest="5+"> | ||
<expression>"titleEn":"([^"]+)",</expression> | ||
</RegExp> | ||
<RegExp input="$$2" output="<url function="ParseDaumCast" cache="daum-mcast-\1.json">http://m.movie.daum.net/data/movie/movie_info/cast_crew.json?pageNo=1&pageSize=100&movieId=\1</url>" dest="5+"> | ||
<expression /> | ||
</RegExp> | ||
<RegExp input="$$2" output="<url function="ParseDaumPhoto" cache="daum-mimg-\1.json">http://m.movie.daum.net/data/movie/photo/movie/list.json?pageNo=1&pageSize=200&id=\1</url>" dest="5+"> | ||
<expression /> | ||
</RegExp> | ||
<RegExp input="$$2" output="<url function="ParseDaumVideoClip" cache="daum-mclip-\1.json">http://m.movie.daum.net/data/movie/vclip/movie/list.json?pageNo=1&pageSize=5&id=\1</url>" dest="5+"> | ||
<expression /> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetDetails> | ||
<ParseDaumCast dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="<actor><name>\1</name><role>\3</role><thumb>\2</thumb></actor>" dest="5"> | ||
<RegExp input="$$1" output="\1" dest="6"> | ||
<expression>"data":\[(.*?)\]</expression> | ||
</RegExp> | ||
<expression repeat="yes">"nameKo":"([^"]*)"[^}]*"fullname":"([^"]*)"[^}]*}[^}]*"castcrewCastName":"(?:주연|출연|특별출연)","castcrewTitleKo":"([^"]*)"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<director>\1</director>" dest="5+"> | ||
<expression>"nameKo":"([^"]*)"[^}]*}[^}]*"castcrewCastName":"감독"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<credits>\1</credits>" dest="5+"> | ||
<expression>"nameKo":"([^"]*)"[^}]*}[^}]*"castcrewCastName":"(?:극본|각본)"</expression> | ||
</RegExp> | ||
<expression noclean="1"/> | ||
</RegExp> | ||
</ParseDaumCast> | ||
<!-- guessing meaning of photoCategory | ||
1: 고해상도 포스터 | ||
2: 고해상도 팬아트 | ||
3: 홍보사 제공 그외 | ||
15: DVD커버/광고캐치 | ||
50: 저해상도 포스터 | ||
51: | ||
53: | ||
119: 시사회 | ||
120: 영화촬영 현장 | ||
121: 1x1 포스터 | ||
--> | ||
<ParseDaumPhoto dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="\1" dest="3"> | ||
<expression>"data":\[(.*?)\]</expression> | ||
</RegExp> | ||
<RegExp input="$$6" output="<fanart>\1</fanart>" dest="5"> | ||
<RegExp input="$$3" output="<thumb preview="\2">\1</thumb>" dest="6"> | ||
<expression repeat="yes">"photoCategory":"2"[^}]*"fullname":"(.*?)"[^}]*"thumbnail":"(.*?)"</expression> | ||
</RegExp> | ||
<expression noclean="1"/> | ||
</RegExp> | ||
<RegExp input="$$3" output="<thumb preview="\2">\1</thumb>" dest="5+"> | ||
<expression repeat="yes">"photoCategory":"1"[^}]*"fullname":"(.*?)"[^}]*"thumbnail":"(.*?)"</expression> | ||
</RegExp> | ||
<expression noclean="1"/> | ||
</RegExp> | ||
</ParseDaumPhoto> | ||
<ParseDaumVideoClip dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="<trailer>\1</trailer>" dest="5"> | ||
<expression repeat="yes">"fileUrl":"([^"]+)"</expression> | ||
</RegExp> | ||
<RegExp input="$$1" output="<trailer>\1</trailer>" dest="5"> | ||
<expression repeat="yes">"subTitle":"[^"]*예고편[^"]*"[^}]+"fileUrl":"([^"]+)"</expression> | ||
</RegExp> | ||
<RegExp conditional="fixVideoURL" input="$$5" output="\1\2.\3" dest="5"> | ||
<expression encode="2">(.*/)(.*)[,\.](.*)</expression> | ||
</RegExp> | ||
<expression noclean="1"/> | ||
</RegExp> | ||
</ParseDaumVideoClip> | ||
<!-- search themoviedb for more images --> | ||
<GetTMDBInfoByNameChain dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp conditional="!SearchTVDBWithGoogle" input="$$1" output="<url function="GetTMDBInfoByName">http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1&amp;include_adult=true</url>" dest="5"> | ||
<expression encode="1" /> | ||
</RegExp> | ||
<RegExp conditional="SearchTVDBWithGoogle" input="$$1" output="<url function="GetTMDBInfoByNameWithGoogle">http://www.google.com/search?q=site:themoviedb.org+\1</url>" dest="5"> | ||
<expression encode="1" /> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetTMDBInfoByNameChain> | ||
<GetTMDBInfoByName dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="<chain function="GetTMDBInfoByIdChain">\1</chain>" dest="5"> | ||
<expression>"id":(\d+)</expression> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetTMDBInfoByName> | ||
<GetTMDBInfoByNameWithGoogle dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="<chain function="GetTMDBInfoByIdChain">\1</chain>" dest="5"> | ||
<expression>/movie/(\d+)</expression> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetTMDBInfoByNameWithGoogle> | ||
<GetTMDBInfoByIdChain dest="4"> | ||
<RegExp input="$$5" output="<details>\1</details>" dest="4"> | ||
<RegExp input="$$1" output="<chain function="GetTMDBSetByIdChain">\1</chain>" dest="5"> | ||
<expression /> | ||
</RegExp> | ||
<RegExp conditional="TMDBArt" input="$$1" output="<chain function="GetTMDBThumbsByIdChain">\1</chain>" dest="5+"> | ||
<expression /> | ||
</RegExp> | ||
<RegExp conditional="TMDBArt" input="$$1" output="<chain function="GetTMDBFanartByIdChain">\1</chain>" dest="5+"> | ||
<expression /> | ||
</RegExp> | ||
<expression noclean="1" /> | ||
</RegExp> | ||
</GetTMDBInfoByIdChain> | ||
</scraper> |
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<strings> | ||
<string id="30000">Basic</string> | ||
<string id="30001">Advanced</string> | ||
<string id="30002">Show original title in Search result</string> | ||
<string id="30003">Use images in themoviedb.org</string> | ||
<string id="30004">Clean synopsys text</string> | ||
<string id="30005">Search themoviedb with Google</string> | ||
<string id="30006">Preferred Language for themoviedb</string> | ||
<string id="30007">Combine Korean and English titles in one</string> | ||
</strings> |
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<strings> | ||
<string id="30000">Please translate me</string> | ||
<string id="30001">Please translate me</string> | ||
<string id="30002">Please translate me</string> | ||
<string id="30003">Please translate me</string> | ||
<string id="30004">Please translate me</string> | ||
<string id="30005">Please translate me</string> | ||
</strings> |
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<strings> | ||
<string id="30000">기본</string> | ||
<string id="30001">고급</string> | ||
<string id="30002">검색결과에 원제목 표시</string> | ||
<string id="30003">themoviedb.org 사진 사용</string> | ||
<string id="30004">깨끗한 줄거리</string> | ||
<string id="30005">themoviedb 검색에 Google 사용</string> | ||
<string id="30006">themoviedb에 사용할 언어</string> | ||
<string id="30007">한글명과 영문명을 합쳐서 표시</string> | ||
</strings> |
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<strings> | ||
<string id="30000">Please translate me</string> | ||
<string id="30001">Please translate me</string> | ||
<string id="30002">Please translate me</string> | ||
<string id="30003">Please translate me</string> | ||
<string id="30004">Please translate me</string> | ||
<string id="30005">Please translate me</string> | ||
</strings> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings> | ||
<category label="30000"> | ||
<setting label="30002" type="bool" id="OrigTitleInSrchResult" default="false"/> | ||
<setting label="30003" type="bool" id="TMDBArt" default="false"/> | ||
<setting label="30007" type="bool" id="combiTitle" default="false"/> | ||
</category> | ||
<category label="30001"> | ||
<setting label="30004" type="bool" id="CleanPlotText" default="true"/> | ||
<setting label="30005" type="bool" id="SearchTVDBWithGoogle" default="true"/> | ||
<setting label="30006" type="labelenum" values="en|ko" id="language" default="ko" visible="false"/> | ||
</category> | ||
</settings> |