mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-26 04:27:46 +08:00
fix monitor
This commit is contained in:
@@ -109,7 +109,8 @@ func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
|
|||||||
} else {
|
} else {
|
||||||
t, err := time.Parse("2006-01-02", ep.AirDate)
|
t, err := time.Parse("2006-01-02", ep.AirDate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("air date not known, will not monitor: %v", ep.AirDate)
|
log.Error("air date not known, will monitor: %v", ep.AirDate)
|
||||||
|
shouldMonitor = true
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if time.Since(t) < 24*time.Hour { //monitor episode air 24h before now
|
if time.Since(t) < 24*time.Hour { //monitor episode air 24h before now
|
||||||
|
|||||||
Reference in New Issue
Block a user