mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
feat: do not use lowercase
This commit is contained in:
@@ -409,7 +409,7 @@ func (c *Client) SuggestedSeriesFolderName(tmdbId int) (string, error) {
|
|||||||
}
|
}
|
||||||
//remove extra characters
|
//remove extra characters
|
||||||
re := regexp.MustCompile(`[^\p{L}\w\s]`)
|
re := regexp.MustCompile(`[^\p{L}\w\s]`)
|
||||||
name = re.ReplaceAllString(strings.ToLower(name), " ")
|
name = re.ReplaceAllString(name, " ")
|
||||||
name = strings.Join(strings.Fields(name), " ")
|
name = strings.Join(strings.Fields(name), " ")
|
||||||
year := strings.Split(d.FirstAirDate, "-")[0]
|
year := strings.Split(d.FirstAirDate, "-")[0]
|
||||||
if year != "" {
|
if year != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user