diff --git a/voctopublish/api_client/voctoweb_client.py b/voctopublish/api_client/voctoweb_client.py index 09ade25..df7a2cd 100644 --- a/voctopublish/api_client/voctoweb_client.py +++ b/voctopublish/api_client/voctoweb_client.py @@ -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__( @@ -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: diff --git a/voctopublish/depublish.py b/voctopublish/depublish.py index ef606e0..2f26ab4 100755 --- a/voctopublish/depublish.py +++ b/voctopublish/depublish.py @@ -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 @@ -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: @@ -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