From 3beb655ab989fe0e3debf20c29b5fd1971a7f3aa Mon Sep 17 00:00:00 2001 From: arf20 <aruizfernandez05@gmail.com> Date: Fri, 30 Aug 2024 14:14:00 +0200 Subject: mpc scrape for title album and author --- index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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> -- cgit v1.2.3