<?php
header('Content-Type: application/json');
$progressFile = __DIR__.'/update_progress.json';
if(file_exists($progressFile)){
    echo file_get_contents($progressFile);
}else{
    echo json_encode(["percent"=>100,"downloaded"=>0,"total"=>0]);
}
?>
