mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix palylist and names
This commit is contained in:
@@ -10,9 +10,11 @@ import (
|
||||
)
|
||||
|
||||
func CleanFName(file string) string {
|
||||
re := regexp.MustCompile(`[ !*'();:@&=+$,/?#\[\]~"]{}`)
|
||||
re := regexp.MustCompile(`[ !*'();:@&=+$,/?#\[\]~"{}]`)
|
||||
ret := re.ReplaceAllString(file, `_`)
|
||||
ret = strings.Replace(ret, "__", "_", -1)
|
||||
ret = strings.Replace(ret, "._", "_", -1)
|
||||
ret = strings.Replace(ret, "_.", ".", -1)
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user