<?php
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');

require_once __DIR__ . '/../includes/nowplaying_lib.php';
$track = smurf_fetch_nowplaying_title();

echo json_encode(['title' => $track], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
