[pitivi] python3: fix encoding for md5



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]