From af98857756399c088fd311ac39854f9ba5462603 Mon Sep 17 00:00:00 2001 From: Dan Benjamin Date: Fri, 5 Jun 2009 12:28:52 -0400 Subject: [PATCH] Fixing an issue that might occur with UTF characters in a set name or file name (via Willie who is not on GitHub). --- flickrtouchr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flickrtouchr.py b/flickrtouchr.py index 88194ea..e818672 100644 --- a/flickrtouchr.py +++ b/flickrtouchr.py @@ -294,7 +294,7 @@ if __name__ == '__main__': photoid = photo.getAttribute("id") # The target - target = dir + "/" + photoid + ".jpg" + target = dir.decode("utf8", "ignore") + "/" + photoid + ".jpg" # Skip files that exist if os.access(target, os.R_OK): -- 2.43.0