diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 6 |
1 files 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() |