-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
206 lines (185 loc) · 6.4 KB
/
index.html
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!-- Originally from: http://www.spicefly.com/article.php?page=musicip-headless-interface -->
<html>
<head>
<title>MusicIP Headless Server</title>
<style type="text/css">
<!--
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
body {
background-color: #99CCFF;
}
.style3 {font-size: 10px}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<h1 class="style2">MusicIP Headless Server</h1>
<h3 class="style2">Current Cache</h3>
<table width=%100>
<TR>
<TD width=5% class="style2"> </TD>
<TD width=35% class="style2">
<table>
<tr><td>Total songs</td><td align=right><?total?></td></tr>
<tr><td>Mixable songs</td><td align=right><?mixable?></td></tr>
<tr><td>Songs to validate</td><td align=right><?todo?></td></tr>
<tr><td colspan=2><?active?> </td></tr>
<!-- NYI: Usage stats? Log file? -->
</table></TD><TD width=60% class="style2">
<form action="/server/add">
<input type=submit value="Add Music">
<input type=text name=root> <i>enter root folder of music</i>
</form>
<form action="/server/search">
<input type=submit value="Search Songs">
<input type=text name=query> <i>enter text to match songs</i>
</form>
<form action="/server/refresh">
<input type=submit value="Refresh Songs">
</form>
<!-- Only show this if the cache is obsolete -->
<?reloadstart?>
<form action="/server/reload">
<input type=submit value="Reload Cache"> <i>Cache has been modified on disk</i>
</form>
<?reloadstop?>
<!-- NYI: Overwrite cache option as well? -->
</TD></tR>
</TABLE>
<hr />
<h3 class="style2">Validation</h3>
<span class="style2">
<!-- Processor load options on Windows -->
<!-- NYI: Only for win32 -->
<?cpustart?>
</span>
<form action="/server/updateProcessorUse" class="style2">
Processor use
<select name="use" onChange="submit()"><?cpu?></select>
<i>(affects time to complete validation)</i>
</form>
<span class="style2">
<?cpustop?>
</span>
<form action="/server/validate" class="style2">
<input type=submit name="action" value="Start Validation">
<input type=submit name="action" value="Stop Validation">
</form>
<hr />
<h3 class="style2">Mix Settings</h3>
<form action="/server/updateMixSettings" class="style2">
<table>
<tr><td>Artist style</td><td>
<select name=style><?style?></select></td></tr>
<tr><td>Variety</td><td>
<select name=variety><?variety?></select></td></tr>
<tr><td>Mix size</td><td>
<input name="size" value="<?mixsize?>" type=text size=20>
<select name="type"><?mixtype?></select></td></tr>
<tr><td>No duplicates within</td><td>
<input name="dupsize" value="<?dupsize?>" type=text size=20>
<select name="duptype"><?duptype?></select></td></tr>
<tr><td colspan="2">
<input name="seed" <?seed?> type=checkbox> Always include seed songs in mix</td></tr>
<tr><td colspan="2"><input type=submit value="Update Settings"></td></tr>
</table>
</form>
<hr />
<!--
<h3 class="style2">Server Settings</h3>
<form action="/server/updateServerSettings" class="style2">
<table>
<tr><td colspan=4><input name=proxy <?proxy?> type=checkbox>Enable proxy</td></tr>
<tr><td>Host</td><td><input name=host value="<?host?>" size=40 type=text></td><td>Port</td><td><input name=port value="<?port?>" type=text><br></td></tr>
<tr><td colspan=4><input name=auth <?auth?> type=checkbox>Enable proxy authentication<br></td></tr>
<tr><td>Username</td><td><input name=user value="<?user?>" size=40 type=text></td><td>Password</td><td><input name=password value="<?password?>" type=password></td></tr>
</table>
<input type=submit value="Update Settings">
</form>
<form action="/server/test" class="style2">
<input type=submit value="Test Connection">
</form>
<hr />
-->
<h3 class="style2">Test Mix</h3>
<form action="/api/mix?song=&size=12&sizeType=tracks&content=text" class="style2">
<input type=submit value="Test Mix Creation">
Test MusicIP is working correctly by creating a Generic Mix
</form>
<hr />
<h3 class="style2">Show Information</h3>
<table>
<td class="style2"><form action="/api/duplicates">
<input name="submit" type=submit value="Show Duplicates">
</form></td>
<td class="style2"><form action="/api/filters">
<input name="submit" type=submit value="Show Filters">
</form></td>
<td class="style2"><form action="/api/moods">
<input name="submit" type=submit value="Show Moods">
</form></td>
<td class="style2"><form action="/api/playlists">
<input name="submit" type=submit value="Show Playlists">
</form></td>
</table>
<table width="221">
<TR>
<TD class="style2">
<form action="/api/albums">
<div align="center">
<input type=submit value="Show Albums">
</div>
</form></TD>
<TD class="style2">
<form action="/api/artists">
<div align="center">
<input type=submit value="Show Artists">
</div>
</form></TD>
</TR>
<TR>
<TD class="style2">
<form action="/api/genres">
<div align="center">
<input type=submit value="Show Genres">
</div>
</form></TD>
<TD class="style2">
<form action="/api/songs">
<div align="center">
<input type=submit value="Show Songs">
</div>
</form></TD>
</TR>
</table>
<form action="/api/getRating" class="style4">
<input type=submit value="Show Rating of Song">
<input name=song type=text size="50">
<i>Use Show Songs, Then Cut and Paste into Text Field</i>
</form>
<form action="/api/getPlayCount" class="style4">
<input type=submit value="Show Play Count of Song">
<input name=song type=text size="50">
<i>Use Show Songs, Then Cut and Paste into Text Field</i>
</form>
<form action="/api/getLastPlayed" class="style4">
<input type=submit value="Show when Song Last Played">
<input name=song type=text size="50">
<i>Use Show Songs, Then Cut and Paste into Text Field</i>
</form>
<hr />
<h3 class="style2">Links</h3>
<table class="style4">
<tr>
<td><span class="style2"><a href="http://forums.slimdevices.com/">Squeezebox Forums</a></span></td>
<td>Support and Information on Squeezebox Products</td>
</tr>
<tr>
<td><span class="style2"><a href="http://www.spicefly.com/">Spicefly.com</a></span></td>
<td>For original version of this page, tips for MusicIP and Spicefly SugarCube</td>
</tr>
</table>
</body>
</html>