Files
decypharr/internal/utils/file.go
Mukhtar Akere a27c5dd491 Hotfixes:
- Fix % error in url encode
- FIx alldebrid downloading bug
- Fix dupicate checks for newly added torrents
2025-04-20 00:44:58 +01:00

22 lines
328 B
Go

package utils
import "strings"
func EscapePath(path string) string {
// escape %
escapedPath := strings.ReplaceAll(path, "%", "%25")
// add others
return escapedPath
}
func UnescapePath(path string) string {
// unescape %
unescapedPath := strings.ReplaceAll(path, "%25", "%")
// add others
return unescapedPath
}