From f89fed4dacfdec5722c274ac5c768e74d76c2fb5 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 25 Jun 2024 10:21:10 +0530 Subject: [PATCH] Decode the folder_basename to a string when we read it --- headphones/postprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index b0b67cc2..0d70b6c5 100755 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -1247,7 +1247,7 @@ def forcePostProcess(dir=None, expand_subfolders=True, album_dir=None, keep_orig myDB = db.DBConnection() for folder in folders: - folder_basename = os.path.basename(folder) + folder_basename = os.path.basename(folder).decode(headphones.SYS_ENCODING, 'replace') logger.info('Processing: %s', folder_basename) # Attempt 1: First try to see if there's a match in the snatched table,