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.
pull/102/head
Mike Lang 5 years ago
parent cbd0ef3d9e
commit 5e0d5b9ddc

@ -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:

Loading…
Cancel
Save