diff --git a/grzegorz_clients/remi_ui.py b/grzegorz_clients/remi_ui.py index 8918096..cfbd960 100644 --- a/grzegorz_clients/remi_ui.py +++ b/grzegorz_clients/remi_ui.py @@ -294,7 +294,12 @@ class RemiApp(App): except api.APIError: playback_pos = None - if playback_pos: + if all([ + playback_pos, + isinstance(playback_pos, dict), + playback_pos["current"], + playback_pos["total"], + ]): slider_pos = playback_pos["current"] / playback_pos["total"] * 100 current = seconds_to_timestamp(playback_pos["current"]) total = seconds_to_timestamp(playback_pos["total"])