From b87c00c041828f949267b73a6d47f5de2efbc0f6 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 11 May 2014 17:18:27 +0200 Subject: [PATCH] Encode before path join --- couchpotato/core/plugins/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/scanner.py b/couchpotato/core/plugins/scanner.py index 167e76c..0568f5e 100644 --- a/couchpotato/core/plugins/scanner.py +++ b/couchpotato/core/plugins/scanner.py @@ -151,7 +151,7 @@ class Scanner(Plugin): try: files = [] for root, dirs, walk_files in scandir.walk(folder, followlinks=True): - files.extend([sp(os.path.join(root, filename)) for filename in walk_files]) + files.extend([sp(os.path.join(toUnicode(root), toUnicode(filename))) for filename in walk_files]) # Break if CP wants to shut down if self.shuttingDown():