Skip to content

Commit

Permalink
hotfix depublishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Sep 22, 2024
1 parent f7eb9c7 commit 1517a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions voctopublish/api_client/voctoweb_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
from model.ticket_module import Ticket
from tools.thumbnails import ThumbnailGenerator

LOG = logging.getLogger("Voctoweb")

LOG = logging.getLogger('Voctoweb')

class VoctowebClient:
def __init__(
Expand Down Expand Up @@ -262,9 +262,7 @@ def upload_file(self, local_filename, remote_filename, remote_folder):
:param remote_filename:
:param remote_folder:
"""
LOG.info(
"uploading " + os.path.join(self.t.publishing_path, local_filename)
)
LOG.info("uploading " + os.path.join(self.t.publishing_path, local_filename))

# Check if ssh connection is open.
if self.sftp is None:
Expand Down
10 changes: 4 additions & 6 deletions voctopublish/depublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(self):
if not self.host:
self.host = socket.getfqdn()

self.ticket_type = "recording"
self.ticket_type = "encoding"
self.to_state = "removing"

# instance variables we need later
Expand Down Expand Up @@ -142,9 +142,7 @@ def depublish(self):
# voctoweb
if self.ticket.voctoweb_enable:
logging.debug(
"encoding profile media flag: "
+ str(self.ticket.profile_voctoweb_enable)
+ " project media flag: "
" project media flag: "
+ str(self.ticket.voctoweb_enable)
)
try:
Expand All @@ -157,8 +155,8 @@ def depublish(self):
logging.debug("no voctoweb :(")

logging.debug(
"#youtube {} {}".format(
self.ticket.profile_youtube_enable, self.ticket.youtube_enable
"#youtube {}".format(
self.ticket.youtube_enable
)
)
# YouTube
Expand Down

0 comments on commit 1517a39

Please sign in to comment.