From 5e0d5b9ddc5dc1c21e50d88d9fa7ac4ef91c791c Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 16 Oct 2019 17:32:57 +1100 Subject: [PATCH] cutter: Add category and sheet_name as video tags This gives us tags on categories, and on which day's sheet the event came from. We use these to make automatic playlists. --- cutter/cutter/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cutter/cutter/main.py b/cutter/cutter/main.py index 9096812..5dfe7c1 100644 --- a/cutter/cutter/main.py +++ b/cutter/cutter/main.py @@ -35,6 +35,7 @@ upload_errors = prom.Counter( # A list of all the DB column names in CutJob CUT_JOB_PARAMS = [ + "sheet_name", "category", "allow_holes", "uploader_whitelist", @@ -352,7 +353,8 @@ class Cutter(object): "{}\n\n{}".format(job.video_description, self.description_footer) if self.description_footer else job.video_description ), - tags=self.tags, + # Add category and sheet_name as tags + tags=self.tags + [job.category, job.sheet_name], data=upload_wrapper(), ) except JobConsistencyError: