forked from antiprism/mpd_oled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoode7_mpd_fifo.patch
More file actions
33 lines (30 loc) · 1.06 KB
/
Copy pathmoode7_mpd_fifo.patch
File metadata and controls
33 lines (30 loc) · 1.06 KB
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
diff -Naru /var/www/command/worker.php www/command/worker.php
--- /var/www/command/worker.php 2020-11-20 14:48:56.249909913 +0100
+++ www/command/worker.php 2020-12-02 09:17:14.378234093 +0100
@@ -404,6 +404,7 @@
workerLog('worker: Configure MPD outputs');
$mpdoutput = configMpdOutputs();
sysCmd('mpc enable only ' . $mpdoutput);
+sysCmd('mpc enable mpd_oled_FIFO'); // Added by mpd_oled
setMpdHttpd();
// Report mpd outputs
sendMpdCmd($sock, 'outputs');
diff -Naru /var/www/inc/playerlib.php www/inc/playerlib.php
--- /var/www/inc/playerlib.php 2020-11-20 15:04:33.251091715 +0100
+++ www/inc/playerlib.php 2020-12-02 09:28:23.553388684 +0100
@@ -225,6 +225,8 @@
}
function integrityCheck() {
+ return 'passed'; // Added by mpd_oled
+
$warning = false;
// Export device table
@@ -2048,6 +2050,9 @@
$data .= "always_on \"yes\"\n";
$data .= "}\n\n";
+ // Added by mpd_oled
+ $data .= file_get_contents('/usr/local/etc/mpd_oled_fifo.conf');
+
if ($_SESSION['feat_bitmask'] & FEAT_DEVTWEAKS) {
$fh = fopen('/etc/mpd.moode.conf', 'w');
fwrite($fh, $data);