Skip to content

Commit

Permalink
fix logic for youtube url detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Sep 21, 2024
1 parent b4a74ab commit 6d597b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voctopublish/model/ticket_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import re
from os.path import join

LOG = logging.getLogger('Ticket')
LOG = logging.getLogger("Ticket")


class Ticket:
"""
Expand Down Expand Up @@ -280,13 +281,12 @@ def __init__(self, ticket, ticket_id, config):
)

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)
else:
self.has_youtube_url = False

self.youtube_playlists = self._get_list(
"Publishing.YouTube.Playlists", optional=True
Expand Down

0 comments on commit 6d597b0

Please sign in to comment.