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(