<?php
require_once __DIR__ . '/includes/nowplaying_lib.php';
header('Content-Type: text/plain; charset=utf-8');
header('Cache-Control: no-cache, no-store, must-revalidate');
$title = trim((string)smurf_fetch_nowplaying_title());
echo $title !== '' ? $title : 'Unable to fetch stream info.';
