Commit 94130863 authored by Priscila Manhaes's avatar Priscila Manhaes

Fix up commit 503a6253

parent 503a6253
......@@ -55,7 +55,7 @@ class Handler(object):
# XXX This implementation could use ffmpeg -i pipe:0, but
# XXX seems super unreliable currently and it generates currupted files in
# the end
logger.debug("FfmpegConvert: %s > %s" % (self.source_format, destination_format))
logger.debug("FfmpegConvert: %s > %s" % (self.input.source_format, destination_format))
output_url = mktemp(suffix=".%s" % destination_format,
dir=self.input.directory_name)
command = ["ffmpeg",
......
......@@ -48,7 +48,7 @@ class Handler(object):
def convert(self, destination_format=None, **kw):
"""Convert a image"""
logger.debug("ImageMagickConvert: %s > %s" % (self.source_format, destination_format))
logger.debug("ImageMagickConvert: %s > %s" % (self.file.source_format, destination_format))
output_url = mktemp(suffix='.%s' % destination_format,
dir=self.base_folder_url)
command = ["convert", self.file.getUrl(), output_url]
......
......@@ -47,7 +47,7 @@ class Handler(object):
def convert(self, destination_format=None, **kw):
""" Convert a pdf document """
logger.debug("PDFConvert: %s > %s" % (self.source_format, destination_format))
logger.debug("PDFConvert: %s > %s" % (self.document.source_format, destination_format))
output_url = mktemp(suffix=".%s" % destination_format,
dir=self.document.directory_name)
command = ["pdftotext", self.document.getUrl(), output_url]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment