forked from antiprism/mpd_oled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoode_mpd_fifo.patch
32 lines (29 loc) · 1 KB
/
moode_mpd_fifo.patch
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
diff -Naru /var/www/command/worker.php www/command/worker.php
--- /var/www/command/worker.php 2020-01-25 13:33:37.135400855 +0100
+++ www/command/worker.php 2020-01-27 20:20:38.617844698 +0100
@@ -390,6 +390,7 @@
workerLog('worker: Configure MPD outputs');
$mpdoutput = configMpdOutputs();
sysCmd('mpc enable only ' . $mpdoutput);
+sysCmd('mpc enable mpd_oled_FIFO');
setMpdHttpd();
// Report mpd outputs
sendMpdCmd($sock, 'outputs');
diff -Naru /var/www/inc/playerlib.php www/inc/playerlib.php
--- /var/www/inc/playerlib.php 2020-01-25 13:33:43.625386712 +0100
+++ www/inc/playerlib.php 2020-01-27 20:43:29.994506362 +0100
@@ -201,6 +201,7 @@
}
function integrityCheck() {
+ return 'passed';
$warning = false;
// Check database schema
@@ -1649,6 +1650,9 @@
$data .= "#allowed_formats \"48000:16:2\"\n";
$data .= "}\n";
+ // mpd_oled FIFO
+ $data .= file_get_contents('/usr/local/etc/mpd_oled_fifo.conf');
+
$fh = fopen('/etc/mpd.conf', 'w');
fwrite($fh, $data);
fclose($fh);