.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user