Remove non-ascii chars in nzb folder name

This commit is contained in:
rembo10
2022-01-22 08:34:47 +05:30
parent 0182be2f27
commit 79cb133d1d
+3
View File
@@ -32,6 +32,7 @@ import functools
import re import re
import os import os
from mediafile import MediaFile, FileTypeError, UnreadableFileError from mediafile import MediaFile, FileTypeError, UnreadableFileError
from unidecode import unidecode
import headphones import headphones
@@ -952,6 +953,8 @@ def sab_sanitize_foldername(name):
if not name: if not name:
return return
name = unidecode(name)
lst = [] lst = []
for ch in name.strip(): for ch in name.strip():
if ch in FL_ILLEGAL: if ch in FL_ILLEGAL: