blob: 8a9222d44abc0575e7cce5550ccfee71d8eea168 (
plain)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2012-01-16">
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1&amp;year=$$4&amp;language=$INFO[language]</url>" dest="3">
<RegExp input="$$2" output="\1" dest="4">
<expression clear="yes">(.+)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</CreateSearchUrl>
<NfoUrl dest="3">
<RegExp input="$$1" output="<details><url>http://api.tmdb.org/3/movie/\2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>\2</id></details>" dest="3">
<expression clear="yes" noclean="1">(themoviedb.org/movie/)([0-9]*)</expression>
</RegExp>
<RegExp input="$$1" output="<details><url cache="tmdb-$INFO[language]-tt\1.json">http://api.tmdb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>tt\1</id></details>" dest="3">
<expression>imdb....?/title/tt([0-9]+)</expression>
</RegExp>
<RegExp input="$$1" output="<details><url cache="tmdb-$INFO[language]-tt\1.json">http://api.tmdb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>tt\1</id></details>" dest="3">
<expression>imdb....?/Title\?t{0,2}([0-9]+)</expression>
</RegExp>
</NfoUrl>
<GetSearchResults dest="8">
<RegExp input="$$3" output="<results>\1</results>" dest="8">
<RegExp input="$$1" output="<entity><title>\3</title><id>\2</id><year>\1</year><url cache="tmdb-$INFO[language]-\2.json">http://api.tmdb.org/3/movie/\2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3">
<expression repeat="yes">"release_date":"([0-9]+)-.*?"id":([0-9]*),"original_title":"[^"]*","original_language":"[^"]*","title":"([^"]*)"</expression>
</RegExp>
<RegExp input="$$1" output="<entity><title>\3</title><id>\2</id><year>\1</year><url cache="tmdb-$INFO[language]-\2.json">http://api.tmdb.org/3/movie/\2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3+">
<expression repeat="yes">"release_date":"([0-9]+)-.*?"id":([0-9]*),"original_title":"([^"]*)","original_language":"[^"]*"</expression>
</RegExp>
<RegExp input="$$1" output="<entity><title>\2</title><id>\1</id><url cache="tmdb-$INFO[language]-\1.json">http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3+">
<expression repeat="yes">"release_date":null.*?"id":([0-9]*),"original_title":"([^"]*)","original_language":"[^"]*"</expression>
</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 noclean="1">"id":([0-9]*),"imdb</expression>
</RegExp>
<RegExp input="$$1" output="<id>\1</id>" dest="5+">
<expression clear="yes" noclean="1">"id":[0-9]*,"imdb_id":"([^"]*)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="9">
<expression fixchars="1">"original_title":"([^"]*)</expression>
</RegExp>
<RegExp conditional="keeporiginaltitle" input="$$9" output="<title>\1</title>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="!keeporiginaltitle" input="$$2" output="<chain function="GetTMDBTitleByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$9" output="<originaltitle>\1</originaltitle>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<year>\1</year>" dest="5+">
<expression noclean="1">"release_date":"([0-9]+)-</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="10">
<expression clear="yes" noclean="1">"runtime":([0-9]+)</expression>
</RegExp>
<RegExp input="$$10" output="<url function="ParseFallbackTMDBRuntime" cache="tmdb-en-$$2.json">http://api.tmdb.org/3/movie/$$2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=en</url>" dest="5+">
<expression>^$</expression>
</RegExp>
<RegExp input="$$10" output="<runtime>\1</runtime>" dest="5+">
<expression>(.+)</expression>
</RegExp>
<RegExp input="$INFO[RatingS]" output="<chain function="GetIMDBRatingById">$$6</chain>" dest="5+">
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1">"id":[0-9]*,"imdb_id":"([^"]*)</expression>
</RegExp>
<expression>IMDb</expression>
</RegExp>
<RegExp input="$INFO[RatingS]" output="<chain function="GetTMDBRatingByIdChain">$$2</chain>" dest="5+">
<expression>TMDb</expression>
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBStudioByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBCountryByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBDirectorsByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBWitersByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBCertificationsByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBSetByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBPlotByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBTaglineByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBCastByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBGenresByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp input="$$2" output="<chain function="GetTMDBThumbsByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp conditional="fanart" input="$$2" output="<chain function="GetTMDBFanartByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<RegExp conditional="trailer" input="$$2" output="<chain function="GetTMDBTrailerByIdChain">$$2</chain>" dest="5+">
<expression />
</RegExp>
<expression noclean="1" />
</RegExp>
</GetDetails>
<ParseFallbackTMDBRuntime dest="5">
<RegExp input="$$2" output="<details>\1</details>" dest="5">
<RegExp input="$$1" output="<runtime>\1</runtime>" dest="2">
<expression noclean="1">"runtime":([0-9]+)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</ParseFallbackTMDBRuntime>
</scraper>
|