Ticket #313: virtualDirs.description.txt

File virtualDirs.description.txt, 6.3 KB (added by skyy99_1111@…, 2 years ago)

Description of schema for virtualDirs.xml file.

Line 
1General structure:
2<virtualDirs>
3        <movieMatch name="Your directory name" description="Short directory description">
4                ... movie matching elements
5        </movieMatch>
6</virtualDirs>
7
8Elements:
9
10<virtualDirs>
11Root element.
12
13<movieMatch name="..." description="...">
14Each movieMatch creates a new custom movie virtual directory. The name attribute defines the name in the Movies menu. The description attribute defines the text description of the custom movie virtual directory. (Currently don't support custom icons). Both name and description are required. All children of this element define matching characteristics for movies to appear in this custom movie virtual directory.
15
16<title [type="i"]>...</title>
17Match on movie title. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
18        <title>Die Hard*</title>
19This matches movies with title starting with Die Hard.
20
21<plot [type="i"]>...</plot>
22Match on movie plot. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
23        <plot>*must save the world*</plot>
24This matches movies with a plot that contains the text "...must save the world...".
25
26<genre [type="i"]>...</genre>
27Match on movie genre. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
28        <genre>Action</genre>
29This matches movies tagged with the Action genre.
30
31<cast [type="i"]>...</cast>
32Match on movie cast member name. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
33        <cast>Bruce Willis</cast>
34This matches movies with Bruce Willis as a cast member.
35
36<director [type="i"]>...</director>
37Match on movie director. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
38        <director>Ron Howard</director>
39This matches movies directed by Ron Howard.
40
41<mpaaRating [type="i"]>...</mpaaRating>
42Match on movie MPAA rating. Wildcards {*,?} may be used. Value must be text (e.g. PG, PG-13, R, etc.). The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
43        <mpaaRating>R</mpaaRating>
44This matches movies rated R by the MPAA.
45
46<subtitles [type="i"]>...</subtitles>
47Match on movie subtitles language. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
48        <subtitles>Spanish</subtitles>
49This matches movies that have Spanish subtitles.
50
51<videoDescription [type="i"]>...</videoDescription>
52Match on movie video description. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
53        <videoDescription>MPEG-2*</videoDescription>
54This matches movies MPEG-2 (DVDs) in any format/resolution. Note, common values for this field are like: "MPEG-2, NTSC, 720x480 (16:9)" or "DivX 5 (Perian, 448 x352, Millions", etc. (depends on container type: DVD, .mkv, ...).
55
56<audioDescription [type="i"]>...</audioDescription>
57Match on movie audio description. Wildcards {*,?} may be used. Value must be text. The type attribute is optional and if specified with value i, makes the match a case insensitive match. Example:
58        <audioDescription>English</audioDescription>
59This matches movies with an English audio track. Note, common values for this field are like: "English", "Spanish", or "MPEG Layer3, Stereo, 44.100 kHz", etc. (depends on container type: DVD, .mkv, ...).
60
61<duration>...</duration>
62Match on movie duration greater than or equal to the value. Value specified in minutes and must be numeric (can be floats). Example:
63        <duration>90</duration>
64This matches movies that are at least 90 minutes long.
65
66<imdbUserRating>...</imdbUserRating>
67Match on movie IMDB user rating greater than or equal to the value. Value specified on scale of 1-10 and must be numeric (can be floats). Example:
68        <imdbUserRating>5.4</imdbUserRating>
69This matches movies that have an IMDB user rating of at least 5.4/10.
70
71<imdbTop250>...</imdbTop250>
72Match on movie IMDB Top 250 ranking less than or equal to the value. Value specified on scale of 1-250 and must be numeric (integer). Example:
73        <imdbTop250>33</imdbTop250>
74This matches movies that have an IMDB Top 250 ranking of 33 or less.
75
76<releaseDate>...</releaseDate>
77Match on movie release date greater than or equal to the value. Value must be a common string representation of a date (e.g. 10/15/2007). Example:
78        <releaseDate>10/15/2007</releaseDate>
79This matches movies that have a release date greater than or equal to October 15, 2007.
80
81<watched>...</watched>
82Match on movie being watched or not. Value must be either 1 (watched) or 0 (not watched). Example:
83        <watched>0</watched>
84This matches movies that have not been watched.
85
86<wonOscars>...</wonOscars>
87Match on movie having won at least 1 Oscar or no Oscars. Value must be either 1 (has won at least 1 Oscar) or 0 (not won any Oscars). Example:
88        <wonOscars>1</wonOscars>
89This matches movies that have won at least 1 Oscar.
90
91<not>...</not>
92Negates the matching criteria of the child element. Value must be a single child element. Example:
93        <not>
94                <cast>Bruce Willis</cast>
95        </not>
96This matches movies that do not have Bruce Wills as a cast member.
97
98<any>...</any>
99Serves as a way to specify that movies can match on any criteria specified by child elements. Nesting of any movie matching elements is supported (including <any> and <all> elements). Example:
100        <any>
101                <title>Die Hard</title>
102                <title>Die Hard 2</title>
103        </any>
104This will match both Die Hard and Die Hard 2.
105
106<all>...</all>
107Serves as a way to specify that movies must match on all criteria specified by child elements. Nesting of any movie matching elements is supported (including <any> and <all> elements). Example:
108        <all>
109                <title>Die Hard*</title>
110                <cast>Bruce Willis</cast>
111        </all>
112This will match all movies with titles that start with Die Hard and have Bruce Willis.
113As a side note, the <movieMatch> element behaves as an <all> element insofar as when child elements are added directly to it.