fix: tv date not exists and folder name suggestion

This commit is contained in:
Simon Ding
2024-09-26 09:45:36 +08:00
parent 89104785d7
commit ecfe31ea45
4 changed files with 13 additions and 6 deletions

View File

@@ -425,7 +425,9 @@ func (c *Client) SuggestedSeriesFolderName(tmdbId int) (string, error) {
if err != nil {
log.Errorf("get en tv detail error: %v", err)
} else {
info.NameEN = stripExtraCharacters(en.Name)
if en.Name != name { //sometimes en name is in chinese
info.NameEN = stripExtraCharacters(en.Name)
}
}
}
year := strings.Split(d.FirstAirDate, "-")[0]