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'])