Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ def download_video_worker():
continue
video_path = download_video(config)
play_video_queue.put((config, video_path))
except Exception as e:
# Never let a single failed download kill the worker thread;
# otherwise every subsequent video silently fails to download.
logging.exception(f"Failed to download video: {e}")
write_log_to_client(f"Failed to download video: {e}")
finally:
download_url_queue.task_done()

Expand Down