diff options
author | arf20 <aruizfernandez05@gmail.com> | 2024-08-30 14:14:00 +0200 |
---|---|---|
committer | arf20 <aruizfernandez05@gmail.com> | 2024-08-30 14:14:00 +0200 |
commit | 3beb655ab989fe0e3debf20c29b5fd1971a7f3aa (patch) | |
tree | b018b9f117688189920dadd119b5b9adc5bf83ac /index.php | |
parent | 0ba70c4c0700ef4f6d4fe1fcd453a49d1d8ae46e (diff) | |
download | arfnet2-radio-3beb655ab989fe0e3debf20c29b5fd1971a7f3aa.tar.gz arfnet2-radio-3beb655ab989fe0e3debf20c29b5fd1971a7f3aa.zip |
mpc scrape for title album and author
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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> |