From b155c53b743a4407f2a4c81e3c23ce0d3f3085ae Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 14 Nov 2022 06:09:09 +1100 Subject: [PATCH] cutter: Correctly set video id and link on failed thumbnail upload --- cutter/cutter/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cutter/cutter/main.py b/cutter/cutter/main.py index 10d6804..73c493a 100644 --- a/cutter/cutter/main.py +++ b/cutter/cutter/main.py @@ -507,7 +507,10 @@ class Cutter(object): ).inc() set_row( state='MODIFIED', + upload_time=datetime.datetime.utcnow(), last_modified=datetime.datetime.utcnow(), + video_id=video_id, + video_link=video_link, error="Error setting thumbnail: {}".format(ex), ) return