mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-04 16:40:46 +08:00
fix: season id
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user