mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
Remove non-ascii chars in nzb folder name
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user