fix: naming

This commit is contained in:
Simon Ding
2024-09-03 10:04:56 +08:00
parent ba1be8f279
commit 3e5e20e933
3 changed files with 5 additions and 5 deletions

View File

@@ -371,7 +371,7 @@ func (c *Client) SuggestedMovieFolderName(tmdbId int) (string, error) {
}
//remove extra characters
re := regexp.MustCompile(`[^\p{L}\w\s]`)
name = re.ReplaceAllString(strings.ToLower(name), " ")
name = re.ReplaceAllString(name, " ")
name = strings.Join(strings.Fields(name), " ")
year := strings.Split(d1.ReleaseDate, "-")[0]
if year != "" {