From 3a55df788dd5d9de9ee3ce117026a83365a9b9d6 Mon Sep 17 00:00:00 2001 From: Brett Williams Date: Sat, 3 Jun 2023 13:19:32 -0500 Subject: [PATCH] Fix issue where client couldn't handle video thumbs --- lib/client/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/client/client.py b/lib/client/client.py index a138b77..551184a 100644 --- a/lib/client/client.py +++ b/lib/client/client.py @@ -185,7 +185,7 @@ class ZordonClient: job_id = self.selected_job_id() if job_id: # update thumb - response = self.server_proxy.request(f'job/{job_id}/thumbnail?size=big') + response = self.server_proxy.request(f'job/{job_id}/thumbnail?size=big&video_ok=false') if response.ok: try: import io @@ -194,14 +194,14 @@ class ZordonClient: self.set_image(image) except Exception as e: print(f"error getting image: {e}") - - # update button status - job = next((d for d in self.job_cache if d.get('id') == job_id), None) - button_state = 'normal' if job and job['status'] == 'running' else 'disabled' - self.stop_button.config(state=button_state) else: self.set_image(self.default_image) + # update button status + job = next((d for d in self.job_cache if d.get('id') == job_id), None) + button_state = 'normal' if job and job['status'] == 'running' else 'disabled' + self.stop_button.config(state=button_state) + def reveal_in_finder(self): job = next((d for d in self.job_cache if d.get('id') == self.selected_job_id()), None) output_dir = os.path.dirname(job['output_path'])