From a0fa4b4bb2d23df05052ab15a58fef3c3bebce90 Mon Sep 17 00:00:00 2001 From: vijeth-aradhya Date: Tue, 8 Aug 2017 22:09:08 +0530 Subject: [PATCH] Add unicode to accomodate title of MediaEntry Related to #5 --- mediagoblin/media_types/video/processing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py index 58a53e0f..66363476 100644 --- a/mediagoblin/media_types/video/processing.py +++ b/mediagoblin/media_types/video/processing.py @@ -179,8 +179,8 @@ def main_task(entry_id, resolution, medium_size, **process_info): # Make state of entry as processed entry.state = u'processed' entry.save() - _log.info(str(entry.title) + ' media entry is processed (transcoded to ' - 'default resolution: ' + str(medium_size) + ').') + _log.info(u'{0} media entry is processed (transcoded to default resolution' + '): {1}'.format(unicode(entry.title), unicode(medium_size))) _log.debug('MediaEntry processed') @@ -194,7 +194,7 @@ def complimentary_task(entry_id, resolution, medium_size, **process_info): processor.common_setup(resolution) processor.transcode(medium_size=tuple(medium_size), vp8_quality=process_info['vp8_quality'], vp8_threads=process_info['vp8_threads'], vorbis_quality=process_info['vorbis_quality']) - _log.info(str(entry.title) + ' media entry is transcoded to ' + str(medium_size)) + _log.info(u'{0} media entry is transcoded to {1}'.format(unicode(entry.title), unicode(medium_size))) @celery.task() -- 2.25.1