| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <scraper framework="1.1" date="2009-12-30" name="IMDb.com" content="movies" thumb="imdb.png" language="en"> |
|---|
| 3 | <include>common/imdb.xml</include> |
|---|
| 4 | <include>common/tmdb.xml</include> |
|---|
| 5 | <include>common/movieposterdb.xml</include> |
|---|
| 6 | <include>common/impa.xml</include> |
|---|
| 7 | <include>common/dtrailer.xml</include> |
|---|
| 8 | <GetSettings dest="3"> |
|---|
| 9 | <RegExp input="$$5" output="<settings>\1</settings>" dest="3"> |
|---|
| 10 | <RegExp input="$$1" output="<setting label="Enable Full Cast Credits" type="bool" id="fullcredits" default="false"></setting>" dest="5"> |
|---|
| 11 | <expression/> |
|---|
| 12 | </RegExp> |
|---|
| 13 | <RegExp input="$$1" output="<setting label="Enable Fanart from themoviedb.org" type="bool" id="fanart" default="true"></setting>" dest="5+"> |
|---|
| 14 | <expression/> |
|---|
| 15 | </RegExp> |
|---|
| 16 | <RegExp input="$$1" output="<setting label="Enable Posters from themoviedb.org" type="bool" id="tmdbthumbs" default="true"></setting>" dest="5+"> |
|---|
| 17 | <expression/> |
|---|
| 18 | </RegExp> |
|---|
| 19 | <RegExp input="$$1" output="<setting label="Enable Posters from IMPAwards" type="bool" id="impawards" default="true"></setting>" dest="5+"> |
|---|
| 20 | <expression/> |
|---|
| 21 | </RegExp> |
|---|
| 22 | <RegExp input="$$1" output="<setting label="Enable Posters from MoviePosterDB" type="bool" id="movieposterdb" default="false"></setting>" dest="5+"> |
|---|
| 23 | <expression/> |
|---|
| 24 | </RegExp> |
|---|
| 25 | <RegExp input="$$1" output="<setting label="Enable IMDb Trailers" type="bool" id="trailer" default="true"></setting>" dest="5+"> |
|---|
| 26 | <expression/> |
|---|
| 27 | </RegExp> |
|---|
| 28 | <RegExp input="$$1" output="<setting label="Enable Trailers from Dtrailer.com" type="bool" id="dtrailer" default="false"></setting>" dest="5+"> |
|---|
| 29 | <expression/> |
|---|
| 30 | </RegExp> |
|---|
| 31 | <RegExp input="$$1" output="<setting label="IMDb Poster &amp; Actor Thumb(s) Size" type="labelenum" values="192|256|384|512|1024" id="imdbscale" default="512"></setting>" dest="5+"> |
|---|
| 32 | <expression/> |
|---|
| 33 | </RegExp> |
|---|
| 34 | <RegExp input="$$1" output="<setting label="Input Alternative IMDb Source" type="text" id="url" default="akas.imdb.com"></setting>" dest="5+"> |
|---|
| 35 | <expression></expression> |
|---|
| 36 | </RegExp> |
|---|
| 37 | <expression noclean="1"/> |
|---|
| 38 | </RegExp> |
|---|
| 39 | </GetSettings> |
|---|
| 40 | <NfoUrl dest="3"> |
|---|
| 41 | <RegExp input="$$1" output="<url>http://www.\1/title/tt\2/</url><id>tt\2</id>" dest="3"> |
|---|
| 42 | <expression clear="yes" noclean="1">(imdb.com/)Title\?([0-9]*)</expression> |
|---|
| 43 | </RegExp> |
|---|
| 44 | <RegExp input="$$1" output="<url>http://www.\1\2/</url><id>tt\2</id>" dest="3+"> |
|---|
| 45 | <expression clear="yes" noclean="1">(imdb.com/title/tt)([0-9]*)</expression> |
|---|
| 46 | </RegExp> |
|---|
| 47 | </NfoUrl> |
|---|
| 48 | <CreateSearchUrl dest="3" SearchStringEncoding="iso-8859-1"> |
|---|
| 49 | <RegExp input="$$1" output="<url>http://$INFO[url]/find?s=tt;q=\1$$4</url>" dest="3"> |
|---|
| 50 | <RegExp input="$$2" output="%20(\1)" dest="4"> |
|---|
| 51 | <expression clear="yes">(.+)</expression> |
|---|
| 52 | </RegExp> |
|---|
| 53 | <expression noclean="1"/> |
|---|
| 54 | </RegExp> |
|---|
| 55 | </CreateSearchUrl> |
|---|
| 56 | <GetSearchResults dest="8"> |
|---|
| 57 | <RegExp input="$$5" output="<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><results>\1</results>" dest="8"> |
|---|
| 58 | <RegExp input="$$1" output="\1" dest="7"> |
|---|
| 59 | <expression clear="yes">/title/([t0-9]*)/faq</expression> |
|---|
| 60 | </RegExp> |
|---|
| 61 | <RegExp input="$$1" output="<entity><title>\1</title><year>\2</year><url>http://$INFO[url]/title/$$7/</url><id>$$7</id></entity>" dest="5"> |
|---|
| 62 | <expression clear="yes" noclean="1"><meta name="title" content="([^"]*) \(([0-9]*)\)</expression> |
|---|
| 63 | </RegExp> |
|---|
| 64 | <RegExp input="$$1" output="\1" dest="4"> |
|---|
| 65 | <expression noclean="1">(><a href="/title.*)</expression> |
|---|
| 66 | </RegExp> |
|---|
| 67 | <RegExp input="$$4" output="<entity><title>\2</title><year>\3</year><url>http://$INFO[url]/title/\1/</url><id>\1</id><kind>\4</kind></entity>" dest="5+"> |
|---|
| 68 | <expression repeat="yes" noclean="1,2">><a href="/title/([t0-9]*)/[^>]*>([^<]*)</a> *\(([0-9]*)(?:\)[^/]*\(([a-z A-Z]*)\))?</expression> |
|---|
| 69 | </RegExp> |
|---|
| 70 | <expression clear="yes" noclean="1"/> |
|---|
| 71 | </RegExp> |
|---|
| 72 | </GetSearchResults> |
|---|
| 73 | <GetDetails dest="3"> |
|---|
| 74 | <RegExp input="$$5" output="<details>\1</details>" dest="3"> |
|---|
| 75 | <RegExp input="$$2" output="<id>\1</id>" dest="5"> |
|---|
| 76 | <expression/> |
|---|
| 77 | </RegExp> |
|---|
| 78 | <RegExp input="$$1" output="<title>\1</title>" dest="5+"> |
|---|
| 79 | <expression trim="1" noclean="1"><h1>([^<]*)</expression> |
|---|
| 80 | </RegExp> |
|---|
| 81 | <RegExp input="$$1" output="<year>\1</year>" dest="5+"> |
|---|
| 82 | <expression>a href="/Sections/Years/([0-9]*)</expression> |
|---|
| 83 | </RegExp> |
|---|
| 84 | <RegExp input="$$1" output="<top250>\1</top250>" dest="5+"> |
|---|
| 85 | <expression>Top 250: #([0-9]*)</a></expression> |
|---|
| 86 | </RegExp> |
|---|
| 87 | <RegExp input="$$1" output="<mpaa>\1</mpaa>" dest="5+"> |
|---|
| 88 | <expression>MPAA</a>:</h5>\n<div class="info-content">\n(.[^<]*)</expression> |
|---|
| 89 | </RegExp> |
|---|
| 90 | <RegExp input="$$1" output="<certification>\1 \3</certification>" dest="5+"> |
|---|
| 91 | <expression repeat="yes"><a href="/List\?certificates=[^"]*">([^<]*)</a>[^<]*(<i>([^<]*)</i>)?</expression> |
|---|
| 92 | </RegExp> |
|---|
| 93 | <RegExp input="$$1" output="<tagline>\1</tagline>" dest="5+"> |
|---|
| 94 | <expression><h5>Tagline:</h5>\n<div class="info-content">\n([^<]*)</expression> |
|---|
| 95 | </RegExp> |
|---|
| 96 | <RegExp input="$$1" output="<runtime>\1</runtime>" dest="5+"> |
|---|
| 97 | <expression trim="1"><h5>Runtime:</h5>[^0-9]*([^<]*)</expression> |
|---|
| 98 | </RegExp> |
|---|
| 99 | <RegExp input="$$1" output="<rating>\1</rating><votes>\2</votes>" dest="5+"> |
|---|
| 100 | <expression><b>([0-9.]+)/10</b>[^<]*<a href="ratings" class="tn15more">([0-9,]+) votes</a></expression> |
|---|
| 101 | </RegExp> |
|---|
| 102 | <RegExp input="$$1" output="<genre>\1</genre>" dest="5+"> |
|---|
| 103 | <expression repeat="yes">"/Sections/Genres/[^/]*/">([^<]*)</a></expression> |
|---|
| 104 | </RegExp> |
|---|
| 105 | <RegExp input="$$1" output="<studio>\1</studio>" dest="5+"> |
|---|
| 106 | <expression repeat="yes">"/company/[^/]*/">([^<]*)</a></expression> |
|---|
| 107 | </RegExp> |
|---|
| 108 | <RegExp input="$$1" output="<outline>\1</outline><plot>\1</plot>" dest="5+"> |
|---|
| 109 | <expression>Plot:</h5>\n<div class="info-content">\n([^<]*)</expression> |
|---|
| 110 | </RegExp> |
|---|
| 111 | <RegExp input="$$1" output="<oscars>1</oscars>" dest="5+"> |
|---|
| 112 | <expression>Awards:</h5>\n<div class="info-content">\nWon Oscar</expression> |
|---|
| 113 | </RegExp> |
|---|
| 114 | <RegExp input="$$1" output="<oscars>\1</oscars>" dest="5+"> |
|---|
| 115 | <expression>Awards:</h5>\n<div class="info-content">\nWon ([0-9]*) Oscars</expression> |
|---|
| 116 | </RegExp> |
|---|
| 117 | <RegExp input="$$1" output="<releasedate>\1</releasedate>" dest="5+"> |
|---|
| 118 | <expression><h5>Release Date:</h5>\n<div class="info-content">\n([^<]*?) \(</expression> |
|---|
| 119 | </RegExp> |
|---|
| 120 | <RegExp input="$$2" output="<url function="GetIMDBPlot">$$3plotsummary</url>" dest="5+"> |
|---|
| 121 | <expression/> |
|---|
| 122 | </RegExp> |
|---|
| 123 | <RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetIMDBCast">$$3</url>" dest="5+"> |
|---|
| 124 | <expression/> |
|---|
| 125 | </RegExp> |
|---|
| 126 | <RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetIMDBDirectors">$$3</url>" dest="5+"> |
|---|
| 127 | <expression/> |
|---|
| 128 | </RegExp> |
|---|
| 129 | <RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetIMDBWriters">$$3</url>" dest="5+"> |
|---|
| 130 | <expression/> |
|---|
| 131 | </RegExp> |
|---|
| 132 | <RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBCast">$$3fullcredits</url>" dest="5+"> |
|---|
| 133 | <expression/> |
|---|
| 134 | </RegExp> |
|---|
| 135 | <RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBDirectors">$$3fullcredits</url>" dest="5+"> |
|---|
| 136 | <expression/> |
|---|
| 137 | </RegExp> |
|---|
| 138 | <RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBWriters">$$3fullcredits</url>" dest="5+"> |
|---|
| 139 | <expression/> |
|---|
| 140 | </RegExp> |
|---|
| 141 | <RegExp conditional="tmdbthumbs" input="$$2" output="<url function="GetTMDBThumbsById">$$3</url>" dest="5+"> |
|---|
| 142 | <expression/> |
|---|
| 143 | </RegExp> |
|---|
| 144 | <RegExp conditional="impawards" input="$$2" output="<url cache="$$2-posters.html" function="GetIMPALink">$$3posters</url>" dest="5+"> |
|---|
| 145 | <expression/> |
|---|
| 146 | </RegExp> |
|---|
| 147 | <RegExp conditional="movieposterdb" input="$$1" output="<url function="GetMoviePosterDBLink">http://www.movieposterdb.com/browse/search?type=movies&amp;query=\1</url>" dest="5+"> |
|---|
| 148 | <expression>/title/tt([t0-9]*)/faq</expression> |
|---|
| 149 | </RegExp> |
|---|
| 150 | <RegExp conditional="trailer" input="$$1" output="<url function="GetIMDBTrailer">http://$INFO[url]/video/imdb/vi\1/player</url>" dest="5+"> |
|---|
| 151 | <expression>/vi([0-9]*)/"</expression> |
|---|
| 152 | </RegExp> |
|---|
| 153 | <RegExp conditional="dtrailer" input="$$1" output="<url function="GetDTrailerLink">http://en.dtrailer.com/movies/search/\1</url>" dest="5+"> |
|---|
| 154 | <expression trim="1" noclean="1"><title>([^<|^(]*)</expression> |
|---|
| 155 | </RegExp> |
|---|
| 156 | <RegExp input="$$2" output="<url cache="$$2-posters.html" function="GetIMDBThumbs">$$3posters</url>" dest="5+"> |
|---|
| 157 | <expression/> |
|---|
| 158 | </RegExp> |
|---|
| 159 | <RegExp conditional="fanart" input="$$2" output="<url function="GetTMDBFanartById">$$3</url>" dest="5+"> |
|---|
| 160 | <expression/> |
|---|
| 161 | </RegExp> |
|---|
| 162 | <expression noclean="1"/> |
|---|
| 163 | </RegExp> |
|---|
| 164 | </GetDetails> |
|---|
| 165 | </scraper> |
|---|