Skip to content

Commit

Permalink
something with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
voc authored and lukas2511 committed Dec 28, 2024
1 parent dc76df5 commit d8ec062
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions voctopublish/model/ticket_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,7 @@ def __init__(self, ticket, ticket_id, config):
"Publishing.Thumbnail.PathOverride", optional=True
)

self.publishing_tags = [
self.acronym,
self.track,
self.room,
self.date.split("-")[0],
*self._get_list("Publishing.Tags", optional=True),
]
self.publishing_tags = self._get_list("Publishing.Tags", optional=True)
self.license = self._get_str("Meta.License", optional=True, try_default=True)

# youtube properties
Expand Down Expand Up @@ -293,6 +287,11 @@ def __init__(self, ticket, ticket_id, config):
)

self.youtube_tags = [
self.acronym,
self.date.split("-")[0],
self.track,
self.room,
self.day,
*self._get_list("Publishing.YouTube.Tags", optional=True),
*self.publishing_tags,
]
Expand Down Expand Up @@ -355,13 +354,17 @@ def __init__(self, ticket, ticket_id, config):
"Voctoweb.RecordingId.Master", optional=True
)
self.voctoweb_event_id = self._get_str("Voctoweb.EventId", optional=True)

# ATTENTION: the tag order here is really important. Do not change, without talking to voctoweb DEVs!
self.voctoweb_tags = [
self.acronym,
self.fahrplan_id,
*self._get_list("Publishing.Voctoweb.Tags", optional=True),
self.date.split("-")[0],
self.track,
self.room, # TODO: do we really want the room in this position?
*self.publishing_tags,
*self._get_list("Publishing.Voctoweb.Tags", optional=True),
]
if self.day:
self.voctoweb_tags.append(f"Day {self.day}")

# rclone properties
self.rclone_enable = self._get_bool(
Expand Down

0 comments on commit d8ec062

Please sign in to comment.