mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
Fix issue where client couldn't handle video thumbs
This commit is contained in:
@@ -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,13 +194,13 @@ class ZordonClient:
|
||||
self.set_image(image)
|
||||
except Exception as e:
|
||||
print(f"error getting image: {e}")
|
||||
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)
|
||||
else:
|
||||
self.set_image(self.default_image)
|
||||
|
||||
def reveal_in_finder(self):
|
||||
job = next((d for d in self.job_cache if d.get('id') == self.selected_job_id()), None)
|
||||
|
||||
Reference in New Issue
Block a user