aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-08-30 14:14:00 +0200
committerarf20 <aruizfernandez05@gmail.com>2024-08-30 14:14:00 +0200
commit3beb655ab989fe0e3debf20c29b5fd1971a7f3aa (patch)
treeb018b9f117688189920dadd119b5b9adc5bf83ac /index.php
parent0ba70c4c0700ef4f6d4fe1fcd453a49d1d8ae46e (diff)
downloadarfnet2-radio-3beb655ab989fe0e3debf20c29b5fd1971a7f3aa.tar.gz
arfnet2-radio-3beb655ab989fe0e3debf20c29b5fd1971a7f3aa.zip
mpc scrape for title album and author
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/index.php b/index.php
index 66a685d..e892584 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,16 @@
Weird nice music arf20 likes</p>
<audio controls>
<source src="/stream" type="audio/ogg">
- </audio>
+ </audio>
+ <pre>
+<?php
+$host = "192.168.4.6";
+$output = null;
+exec("/usr/bin/mpc --host=$host -f \"[[%artist% - ][%album% - ]%title%]|[%file%]\"", $output);
+echo $output[0] . "\n";
+echo $output[1];
+?>
+ </pre>
</main>
</body>
</html>