Skip to content

Commit

Permalink
PublishingTicket: depublishing worker needs youtube url information
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Jan 2, 2025
1 parent 7a97f1e commit 061b5d1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions voctopublish/model/ticket_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 061b5d1

Please sign in to comment.