mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-23 05:09:28 +00:00
Remove non-ascii chars in nzb folder name
This commit is contained in:
@@ -32,6 +32,7 @@ import functools
|
||||
import re
|
||||
import os
|
||||
from mediafile import MediaFile, FileTypeError, UnreadableFileError
|
||||
from unidecode import unidecode
|
||||
import headphones
|
||||
|
||||
|
||||
@@ -952,6 +953,8 @@ def sab_sanitize_foldername(name):
|
||||
if not name:
|
||||
return
|
||||
|
||||
name = unidecode(name)
|
||||
|
||||
lst = []
|
||||
for ch in name.strip():
|
||||
if ch in FL_ILLEGAL:
|
||||
|
||||
Reference in New Issue
Block a user