This commit is contained in:
2025-10-07 12:07:45 -04:00
parent 90c3efbb8b
commit 0029a9ec19
3 changed files with 103 additions and 34 deletions

View File

@@ -364,7 +364,7 @@ class Radio(FastAPI):
ret_obj: dict = {**self.radio_util.now_playing[station]}
ret_obj["station"] = station
try:
ret_obj["elapsed"] = int(time.time()) - ret_obj["start"]
ret_obj["elapsed"] = int(time.time()) - ret_obj["start"] if ret_obj["start"] else 0
except KeyError:
traceback.print_exc()
ret_obj["elapsed"] = 0