From 061b5d153f95218e1c1c6c6097fd3c49226f2c88 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 2 Jan 2025 10:54:47 +0000 Subject: [PATCH] PublishingTicket: depublishing worker needs youtube url information --- voctopublish/model/ticket_module.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/voctopublish/model/ticket_module.py b/voctopublish/model/ticket_module.py index 12a4c97..ca32230 100644 --- a/voctopublish/model/ticket_module.py +++ b/voctopublish/model/ticket_module.py @@ -274,14 +274,6 @@ def __init__(self, ticket, ticket_id, config): "Publishing.YouTube.TranslationTitleSuffix", optional=True ) - self.youtube_urls = {} - self.has_youtube_url = False - # check if this event has already been published to youtube - for key in ticket: - if key.lower().startswith("youtube."): - self.has_youtube_url = True - self.youtube_urls[key] = self._get_str(key) - self.youtube_playlists = self._get_list( "Publishing.YouTube.Playlists", optional=True ) @@ -330,6 +322,13 @@ def __init__(self, ticket, ticket_id, config): self.youtube_publish_at = datetime.now( timezone.utc ) + timedelta(**kwargs) + self.youtube_urls = {} + self.has_youtube_url = False + # check if this event has already been published to youtube + for key in ticket: + if key.lower().startswith("youtube."): + self.has_youtube_url = True + self.youtube_urls[key] = self._get_str(key) # voctoweb properties if self._get_bool(