mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
watched_hooks: Update season to watching when held or dropped too
This commit is contained in:
@@ -73,7 +73,8 @@ func hookEpisodeStatusChanged(db *gorm.DB, userId uint, watchedId uint, seasonNu
|
||||
}
|
||||
hookResponse.AddedActivities = append(hookResponse.AddedActivities, resp.AddedActivity)
|
||||
}
|
||||
} else if watchedSeason.Status == "" || watchedSeason.Status == PLANNED || watchedSeason.Status == HOLD || watchedSeason.Status == DROPPED {
|
||||
} else if watchedSeason.Status == "" || watchedSeason.Status == PLANNED ||
|
||||
((newEpisodeStatus == FINISHED || newEpisodeStatus == WATCHING) && (watchedSeason.Status == HOLD || watchedSeason.Status == DROPPED)) {
|
||||
reasonStr := fmt.Sprintf("Episode %d was set to %s while the season had ", episodeNum, newEpisodeStatus)
|
||||
if watchedSeason.Status == "" {
|
||||
reasonStr += "no status."
|
||||
|
||||
Reference in New Issue
Block a user