-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.xsd
62 lines (53 loc) · 2.01 KB
/
config.xsd
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
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="config" type="config" />
<xs:complexType name="config">
<xs:sequence>
<xs:element name="connection" type="conn" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="conn">
<xs:sequence>
<xs:element name="auth" type="auth" />
<xs:element name="group" type="group" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="auth">
<xs:all>
<xs:element name="hostname" type="xs:string" />
<xs:element name="port" type="xs:integer" />
<xs:element name="username" type="xs:string" />
<xs:element name="key" type="xs:string" />
<xs:element name="password" type="xs:string" />
<xs:element name="root" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="emby" type="emby" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
<xs:complexType name="emby">
<xs:attribute name="url" type="xs:string"/>
<xs:attribute name="username" type="xs:string"/>
<xs:attribute name="password" type="xs:string"/>
</xs:complexType>
<xs:complexType name="group">
<xs:sequence>
<xs:element name="show" type="show" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="location" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="show">
<xs:sequence>
<xs:element name="remotepath" type="xs:string"/>
<xs:element name="downloaded" type="downloaded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="downloaded">
<xs:sequence>
<xs:element name="range" type="range" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="range">
<xs:attribute name="season" type="xs:integer"/>
<xs:attribute name="start" type="xs:integer"/>
<xs:attribute name="end" type="xs:integer"/>
</xs:complexType>
</xs:schema>