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 # A list of all the DB column names in CutJob
CUT_JOB_PARAMS = [ CUT_JOB_PARAMS = [
"sheet_name",
"category", "category",
"allow_holes", "allow_holes",
"uploader_whitelist", "uploader_whitelist",
@ -352,7 +353,8 @@ class Cutter(object):
"{}\n\n{}".format(job.video_description, self.description_footer) "{}\n\n{}".format(job.video_description, self.description_footer)
if self.description_footer else job.video_description 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(), data=upload_wrapper(),
) )
except JobConsistencyError: except JobConsistencyError:

Loading…
Cancel
Save