[pitivi] python3: fix encoding for md5
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] python3: fix encoding for md5
- Date: Sun, 13 Apr 2014 14:33:38 +0000 (UTC)
commit aea80145baa9cb63e0016e3b363c8cad530ad8f9
Author: Lubosz Sarnecki <lubosz gmail com>
Date: Fri Apr 11 20:32:47 2014 +0200
python3: fix encoding for md5
https://bugzilla.gnome.org/show_bug.cgi?id=728011
pitivi/mainwindow.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 9944ca7..dbbd1a4 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -871,7 +871,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
# This can happen if the file was moved or deleted by an application
# that does not manage Freedesktop thumbnails. The user is in luck!
# This is based on medialibrary's addDiscovererInfo method.
- thumbnail_hash = md5(uri).hexdigest()
+ thumbnail_hash = md5(uri.encode()).hexdigest()
thumb_dir = os.path.expanduser("~/.thumbnails/normal/")
thumb_path_normal = thumb_dir + thumbnail_hash + ".png"
if os.path.exists(thumb_path_normal):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]