From 19e31d74920771ed01bd9d725d5d872bea0d5647 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Tue, 10 Feb 2015 13:01:22 -0800 Subject: [PATCH] Missed encoding for md5_hash --- openlp/plugins/presentations/lib/presentationcontroller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/presentations/lib/presentationcontroller.py b/openlp/plugins/presentations/lib/presentationcontroller.py index 55e666e87..926971924 100644 --- a/openlp/plugins/presentations/lib/presentationcontroller.py +++ b/openlp/plugins/presentations/lib/presentationcontroller.py @@ -134,7 +134,7 @@ class PresentationDocument(object): """ # TODO: If statment can be removed when the upgrade path from 2.0.x to 2.2.x is no longer needed if Settings().value('presentations/thumbnail_scheme') == 'md5': - folder = md5_hash(self.file_path) + folder = md5_hash(self.file_path.encode('utf-8')) else: folder = self.get_file_name() return os.path.join(self.controller.thumbnail_folder, folder) @@ -145,7 +145,7 @@ class PresentationDocument(object): """ # TODO: If statment can be removed when the upgrade path from 2.0.x to 2.2.x is no longer needed if Settings().value('presentations/thumbnail_scheme') == 'md5': - folder = md5_hash(self.file_path) + folder = md5_hash(self.file_path.encode('utf-8')) else: folder = folder = self.get_file_name() return os.path.join(self.controller.temp_folder, folder)