From b4b3bc6e8a0ba9a5855120bbec8712bb34bbd25a Mon Sep 17 00:00:00 2001 From: GermainZ Date: Sun, 9 Mar 2014 22:31:27 +0200 Subject: Add extension --- ranger/core/actions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index a3497902..2dfb116e 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -802,10 +802,12 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): if version_info[0] == 3: def sha1_encode(self, path): - return os.path.join(ranger.CACHEDIR, sha1(path.encode('utf-8')).hexdigest()) + return os.path.join(ranger.CACHEDIR, + sha1(path.encode('utf-8')).hexdigest()) + '.jpg' else: def sha1_encode(self, path): - return os.path.join(ranger.CACHEDIR, sha1(path).hexdigest()) + return os.path.join(ranger.CACHEDIR, + sha1(path).hexdigest()) + '.jpg' def get_preview(self, file, width, height): pager = self.ui.get_pager() -- cgit 1.4.1-2-gfad0