~x3lectric/xbmc/svn-trunk

« back to all changes in this revision

Viewing changes to system/scrapers/video/tvdb.xml

  • Committer: monkeyman_67156
  • Date: 2008-01-22 22:39:09 UTC
  • Revision ID: svn-v4:568bbfeb-2a22-0410-94d2-cc84cf5bfa90:branches/linuxport/XBMC:11400
update: More trunk synchronization.  Sorry, no dvdplayer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!-- should be self-explanatory -->
2
2
<scraper name="TheTVDB.com" content="tvshows" thumb="tvdb.png">
 
3
        <GetSettings dest="3">
 
4
                <RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
 
5
                        <RegExp input="$$1" output="&lt;url function=&quot;GetLanguages&quot;&gt;http://thetvdb.com/interfaces/GetLanguages.php&lt;/url&gt;" dest="5">
 
6
                                <expression></expression>
 
7
                        </RegExp>
 
8
                        <RegExp input="$$1" output="&lt;setting label=&quot;Use DVD Order&quot; type=&quot;bool&quot; id=&quot;dvdorder&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
 
9
                                <expression></expression>
 
10
                        </RegExp>
 
11
                        <RegExp input="$$1" output="&lt;setting label=&quot;UserID&quot; type=&quot;text&quot; id=&quot;userid&quot;&gt;&lt;/setting&gt;" dest="5+">
 
12
                                <expression></expression>
 
13
                        </RegExp>
 
14
                        <RegExp input="$$1" output="&lt;setting type=&quot;sep&quot;&gt;&lt;/setting&gt;" dest="5+">
 
15
                                <expression></expression>
 
16
                        </RegExp>
 
17
                        <expression noclean="1"></expression>
 
18
                </RegExp>
 
19
        </GetSettings>
3
20
        <!--    input:          $1=query string -->
4
21
        <!--    returns:        the url we should use to do the search -->
5
22
        <CreateSearchUrl dest="3">
14
31
                        <expression noclean="1">&lt;Items&gt;(.*)&lt;/Items&gt;</expression>
15
32
                </RegExp>
16
33
                <RegExp input="$$4" output="&lt;results&gt;\1&lt;/results&gt;" dest="1">
17
 
                        <RegExp input="$$3" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url&gt;http://thetvdb.com/interfaces/SeriesUpdates.php?lasttime=0&amp;amp;idlist=\1&lt;/url&gt;&lt;url&gt;http://thetvdb.com/interfaces/GetBanners.php?seriesid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="4">
 
34
                        <RegExp input="$$3" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url&gt;http://thetvdb.com/interfaces/SeriesUpdates.php?lasttime=0&amp;amp;idlist=\1&amp;amp;language=$INFO[language]&amp;amp;user=$INFO[userid]&lt;/url&gt;&lt;url&gt;http://thetvdb.com/interfaces/GetBanners.php?seriesid=\1&amp;amp;language=$INFO[language]&amp;amp;user=$INFO[userid]&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="4">
18
35
                                <expression repeat="yes">&lt;id&gt;([0-9]*)&lt;/id&gt;[^&lt;]*&lt;SeriesName&gt;([^&lt;]*)&lt;/SeriesName&gt;</expression>
19
36
                        </RegExp>
20
37
                        <expression noclean="1"></expression>
56
73
                                <expression noclean="1">&lt;Actors&gt;([^&lt;]*)&lt;/Actors&gt;</expression>
57
74
                        </RegExp>
58
75
                        <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="4+">
59
 
                                <expression repeat="yes">\|?([^\|]*)\|?</expression>
 
76
                                <expression repeat="yes">\|?([^\|]+)\|?</expression>
60
77
                        </RegExp>
61
78
                        <RegExp input="$$5" output="&lt;thumbs&gt;\1&lt;/thumbs&gt;" dest="4+">
62
79
                                <RegExp input="$$2" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="5">
70
87
                                </RegExp>
71
88
                                <expression noclean="1"></expression>
72
89
                        </RegExp>
73
 
                        <RegExp input="$$3" output="&lt;episodeguide&gt;&lt;url&gt;http://thetvdb.com/interfaces/GetEpisodes.php?seriesid=\1&lt;/url&gt;&lt;/episodeguide&gt;" dest="4+">
 
90
                        <RegExp conditional="!dvdorder" input="$$3" output="&lt;episodeguide&gt;&lt;url&gt;http://thetvdb.com/interfaces/GetEpisodes.php?seriesid=\1&amp;amp;language=$INFO[language]&amp;amp;user=$INFO[userid]&lt;/url&gt;&lt;/episodeguide&gt;" dest="4+">
 
91
                                <expression></expression>
 
92
                        </RegExp>
 
93
                        <RegExp conditional="dvdorder" input="$$3" output="&lt;episodeguide&gt;&lt;url&gt;http://thetvdb.com/interfaces/GetEpisodes.php?seriesid=\1&amp;amp;order=dvd&amp;amp;language=$INFO[language]&amp;amp;user=$INFO[userid]&lt;/url&gt;&lt;/episodeguide&gt;" dest="4+">
74
94
                                <expression></expression>
75
95
                        </RegExp>
76
96
                        <expression noclean="1"></expression>
81
101
        <!--    returns: results in xml format <episodeguide><episode><title>*</title><url>*</url><season>*</season><epnum>*</epnum><thumb>*</thumb><id>*</id></episode>*</episodeguide> !-->
82
102
        <GetEpisodeList dest="3">
83
103
          <RegExp input="$$4" output="&lt;episodeguide&gt;\1&lt;/episodeguide&gt;" dest="3">
84
 
                <RegExp input="$$1" output="&lt;episode&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url&gt;http://thetvdb.com/interfaces/EpisodeUpdates.php?idlist=\1&lt;/url&gt;&lt;epnum&gt;\3&lt;/epnum&gt;&lt;season&gt;\2&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4">
 
104
                <RegExp input="$$1" output="&lt;episode&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url&gt;http://thetvdb.com/interfaces/EpisodeUpdates.php?idlist=\1&amp;amp;language=$INFO[language]&amp;amp;$INFO[userid]&lt;/url&gt;&lt;epnum&gt;\3&lt;/epnum&gt;&lt;season&gt;\2&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4">
85
105
                        <expression repeat="yes">&lt;id&gt;([0-9]*)&lt;/id&gt;[^&lt;]*&lt;SeasonNumber&gt;([0-9]*)&lt;/SeasonNumber&gt;[^&lt;]*&lt;EpisodeNumber&gt;([0-9]*)&lt;/EpisodeNumber&gt;[^&lt;]*&lt;EpisodeName&gt;([^&lt;]*)&lt;/EpisodeName&gt;</expression>
86
106
                </RegExp>
87
107
            <expression noclean="1"></expression>
157
177
                        <expression noclean="1"></expression>
158
178
                </RegExp>
159
179
        </GetEpisodeDetails>
 
180
        <GetLanguages dest="3">
 
181
                <RegExp input="$$2" output="&lt;settings&gt;&lt;setting label=&quot;Language&quot; type=&quot;enum&quot; id=&quot;language&quot; values=&quot;$$9&quot; entries=&quot;$$8&quot; default=&quot;7&quot;&gt;&lt;/setting&gt;&lt;/settings&gt;" dest="3">
 
182
                        <RegExp input="$$1" output="\1|" dest="8+">
 
183
                                <expression repeat="yes">&lt;id&gt;([0-9]+)&lt;/id&gt;</expression>
 
184
                        </RegExp>
 
185
                        <RegExp input="$$1" output="\1|" dest="9+">
 
186
                                <expression repeat="yes">&lt;language&gt;([^&lt;]*)&lt;/language&gt;</expression>
 
187
                        </RegExp>
 
188
                        <expression noclean="1"></expression>
 
189
                </RegExp>
 
190
        </GetLanguages>
160
191
</scraper>