forked from hojel/metadata.movie.daum.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaum-movie.xml
209 lines (209 loc) · 10.7 KB
/
daum-movie.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?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://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/data/movie/search/v2/movie.json?size=20&start=1&searchText=\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>\4</year><id>\1</id><url cache="daum-movie-\1.json">http://movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url></entity>" dest="5">
<expression repeat="yes" trim="2,3">"movieId":(\d+),"titleKo":"([^"]*)","titleEn":"?([^",]*)"?,[^}]*"prodYear":(\d*)</expression>
</RegExp>
<RegExp conditional="OrigTitleInSrchResult" input="$$6" output="\1" dest="5">
<RegExp input="$$1" output="<entity><title>\2(\3)</title><year>\4</year><id>\1</id><url cache="daum-movie-\1.json">http://movie.daum.net/data/movie/movie_info/detail.json?movieId=\1</url></entity>" dest="6">
<expression repeat="yes" trim="2,3">"movieId":(\d+),"titleKo":"([^"]*)","titleEn":"?([^",]*)"?,[^}]*"prodYear":(\d*)</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 clear="yes" 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://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://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://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>
<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>