fix: season id

This commit is contained in:
Simon Ding
2024-07-20 13:20:36 +08:00
parent 72600aff9a
commit b6f7702bc5

View File

@@ -133,7 +133,7 @@ func SeasonId(seasonName string) (int, error) {
if len(matchSe) == 0 {
return 0, errors.New("no season number") //no season num
}
num, err := strconv.Atoi(matchSe[0])
num, err := strconv.Atoi(matchSe[len(matchSe)-1])
if err != nil {
return 0, errors.Wrap(err, "convert")
}