fixed: ofdb-scraper
[xbmc:paulepanters-xbmc.git] / system / scrapers / video / ofdb.xml
1 <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>\r
2 <scraper name="OFDB" content="movies" thumb="ofdb.png">\r
3   \r
4   <CreateSearchUrl dest="3">\r
5     <RegExp input="$$1" output="http://www.ofdb.de/view.php?SText=\1&amp;Kat=Titel&amp;page=suchergebnis&amp;sourceid=mozilla-search" dest="3">\r
6       <expression noclean="1">([^\(]+)</expression>\r
7     </RegExp>\r
8   </CreateSearchUrl>\r
9   \r
10   <GetSearchResults dest="8">\r
11     <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">\r
12       <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\4) | \3&lt;/title&gt;&lt;year&gt;\4&lt;/year&gt;&lt;url&gt;http://www.ofdb.de/view.php?page=film&amp;amp;fid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">\r
13         <expression repeat="yes" noclean="1">&lt;a href=.view.php.page=film&amp;fid=([0-9]+).&gt;([^&lt;]+)&lt;font size=.1.&gt; . ([^&lt;]+)&lt;/font&gt; \(([0-9]+)\)&lt;/a&gt;</expression></RegExp>\r
14       <expression noclean="1"></expression>\r
15     </RegExp>\r
16   </GetSearchResults>\r
17   \r
18   <GetDetails dest="3">\r
19     <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">\r
20       \r
21       <!--Title -->\r
22       <RegExp input="$$6" output="\1" dest="5+">    \r
23         <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="6">\r
24           <expression trim="1" noclean="1">&lt;td width=&quot;99.&quot;&gt;&lt;font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;3&quot;&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;\r
25           </expression>\r
26         </RegExp>\r
27         \r
28         <RegExp input="$$7" output="&lt;title&gt;\2 \1&lt;/title&gt;" dest="6">\r
29           <RegExp input="$$1" output="\1" dest="7">\r
30             <expression trim="1" noclean="1">&lt;td width=&quot;99.&quot;&gt;&lt;font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;3&quot;&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;\r
31             </expression>\r
32           </RegExp>\r
33          <expression>(.*), (Die|Der|Das|The)</expression>\r
34         </RegExp>\r
35         <expression></expression>\r
36       </RegExp>\r
37        \r
38       <!--Original Title -->\r
39       <RegExp input="$$1" output="\1" dest="8">\r
40           <expression>class=&quot;Normal&quot;&gt;Originaltitel(.*)class=&quot;Normal&quot;&gt;Herstellungsland</expression>\r
41       </RegExp>\r
42       <RegExp input="$$7" output="\1" dest="5+">\r
43         <RegExp input="$$8" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="7">\r
44             <expression>&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>\r
45         </RegExp>\r
46         <RegExp input="$$6" output="&lt;originaltitle&gt;\2 \1&lt;/originaltitle&gt;" dest="7">\r
47             <RegExp input="$$8" output="\1" dest="6">\r
48                 <expression>&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>\r
49             </RegExp>\r
50             <expression>(.*), (Die|Der|Das|The)</expression>\r
51         </RegExp>\r
52         <expression></expression>\r
53       </RegExp>\r
54       \r
55       <!--Year -->\r
56       <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">\r
57         <expression>view.php\?page=blaettern&amp;Kat=Jahr&amp;Text=([0-9]+)</expression></RegExp>\r
58       \r
59       <!--Director-->\r
60       \r
61       <RegExp input="$$9" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">\r
62         <RegExp input="$$1" output="\1" dest="9">\r
63           <expression>class=&quot;Normal&quot;&gt;Regie(.*)class=&quot;Normal&quot;&gt;Darsteller</expression>\r
64         </RegExp>\r
65         <expression repeat="yes">Name=[^&gt;]*&gt;([^&lt;]+)</expression>\r
66       </RegExp>\r
67       \r
68       <!--Actor -->\r
69       <RegExp input="$$9" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="5+">\r
70         <RegExp input="$$1" output="\1" dest="9">\r
71           <expression>class=&quot;Normal&quot;&gt;Darsteller(.*)</expression>\r
72         </RegExp>\r
73         <expression repeat="yes">&lt;a href=.view.php.page=liste.Name=[^&gt;]+>([^&lt;]+)&lt;/a&gt;</expression>\r
74       </RegExp>\r
75       \r
76       <!--Plot outline -->\r
77       <RegExp input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;" dest="5+">\r
78         <expression>&lt;b&gt;Inhalt:&lt;/b&gt;([^&lt;]+)</expression>\r
79       </RegExp>\r
80       \r
81       <!--Thumbnail-->\r
82       <RegExp input="$$1" output="&lt;thumb&gt;http://www.ofdb.de/images/film/\1&lt;/thumb&gt;" dest="5+">\r
83         <expression>&lt;img src=&quot;images/film/([^&quot;]+)&quot; [^&gt;]*&gt;</expression>\r
84       </RegExp>\r
85       \r
86       <!--Genre-->\r
87       <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">\r
88         <expression repeat="yes">view.php\?page=genre&amp;Genre=[^&quot;]+&quot;&gt;([^&lt;]*)&lt;</expression>\r
89       </RegExp>\r
90       \r
91       <!--Rating-->\r
92       <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">\r
93         <expression>Note: ([0-9\.]+)</expression>\r
94       </RegExp>\r
95       \r
96       <!--Votes-->\r
97       <RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">\r
98         <expression>Stimmen: ([0-9]+)</expression>\r
99       </RegExp>\r
100       \r
101       <!--URL to Plot -->\r
102       <RegExp input="$$1" output="&lt;url function=&quot;Inhaltsangabe&quot;&gt;http://www.ofdb.de/view.php?page=inhalt&amp;amp;fid=\1&amp;amp;sid=\2&lt;/url&gt;" dest="5+">\r
103         <expression>Inhalt:&lt;/b&gt;[^&lt;]*&lt;a href=&quot;view.php\?page=inhalt&amp;fid=([0-9]+)&amp;sid=([0-9]+)&quot;</expression>\r
104       </RegExp>\r
105       \r
106       <!--URL to MPAA-->\r
107       <RegExp input="$$1" output="&lt;url function=&quot;Altersfreigabe&quot;&gt;http://www.ofdb.de/view.php?page=fassung&amp;amp;fid=\1&amp;amp;vid=\2&lt;/url&gt;" dest="5+">\r
108         <expression>&lt;a href=.view.php.page=fassung&amp;fid=([0-9]+)&amp;vid=([0-9]+).&gt;Kino:</expression>\r
109       </RegExp>\r
110       \r
111       <expression noclean="1"></expression>\r
112     </RegExp>\r
113   </GetDetails>\r
114   \r
115   <!--Plot-->\r
116   <Inhaltsangabe dest="5">\r
117     <RegExp input="$$7" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;plot&gt;\1 \2&lt;/plot&gt;&lt;/details&gt;" dest="5+">\r
118         <RegExp input="$$1" output="\1" dest="9">\r
119           <expression>Eine Inhaltsangabe von(.*)&lt;option value=&quot;All&quot;&gt;</expression>\r
120         </RegExp>\r
121         <RegExp input="$$9" output="\1" dest="8">\r
122           <expression>&lt;br&gt;([^&lt;]+)</expression>\r
123         </RegExp>\r
124         <RegExp input="$$9" output=" \1" dest="8+">\r
125           <expression repeat="yes">&lt;br /&gt;([^&lt;]+)</expression>\r
126         </RegExp>\r
127         <RegExp input="$$8" output=" \1" dest="7+">\r
128           <expression repeat="yes">([^&#x0D;]+)&#x0D;</expression>\r
129         </RegExp>        \r
130       <expression>(.*)</expression>\r
131     </RegExp>\r
132   </Inhaltsangabe>\r
133   \r
134   <!--MPAA-->\r
135   <Altersfreigabe dest="5">\r
136     <RegExp input="$$1" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;mpaa&gt;(Kino) \1&lt;/mpaa&gt;&lt;/details&gt;" dest="5+">\r
137       <expression>Freigabe:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;font[^&gt;]+&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;</expression>\r
138     </RegExp>\r
139   </Altersfreigabe>\r
140   \r
141 </scraper>\r