![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/soundstudiopro.com/private_html/utils/ |
<?php
require_once 'config/database.php';
$pdo = getDBConnection();
echo "<h2>Force Updating Andrew Track</h2>";
$task_id = '1daba952654f39259627e8a1c2b2f443';
$result_file = "task_results/{$task_id}.json";
if (file_exists($result_file)) {
echo "<p style='color: green;'>✅ Found result file!</p>";
$result_data = json_decode(file_get_contents($result_file), true);
// Get the second audio file which has the actual audio URL
$audio_data = $result_data['data']['data'][1] ?? null;
if ($audio_data && isset($audio_data['audio_url']) && !empty($audio_data['audio_url'])) {
$audio_url = $audio_data['audio_url'];
$duration = $audio_data['duration'] ?? 30;
echo "<p>Audio URL: $audio_url</p>";
echo "<p>Duration: $duration seconds</p>";
echo "<p>Title: " . ($audio_data['title'] ?? 'N/A') . "</p>";
echo "<p>Tags: " . ($audio_data['tags'] ?? 'N/A') . "</p>";
// Force update the track to complete
updateMusicTrack($task_id, 'complete', $audio_url, null, null, json_encode($result_data), $duration);
echo "<p style='color: green;'>✅ FORCED UPDATE: Track set to COMPLETE!</p>";
echo "<p>Task ID: $task_id</p>";
echo "<p>Status: complete</p>";
echo "<p>Audio URL: $audio_url</p>";
echo "<p>Duration: $duration seconds</p>";
// Show the lyrics
if (isset($audio_data['prompt'])) {
echo "<h3>🎵 Lyrics:</h3>";
echo "<pre style='background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; max-height: 300px; overflow-y: auto;'>" . htmlspecialchars($audio_data['prompt']) . "</pre>";
}
} else {
echo "<p style='color: red;'>❌ No valid audio URL found</p>";
}
} else {
echo "<p style='color: red;'>❌ Result file not found</p>";
}
echo "<h3>✅ Force Update Complete!</h3>";
echo "<p>Refresh your My Library page to see the changes.</p>";
?>