rss: use filters hash relative to its own pvrs

This commit is contained in:
James Bayliss
2021-02-16 19:09:01 +00:00
parent 495c5a5c1a
commit 4476094add
7 changed files with 19 additions and 22 deletions

View File

@@ -30,7 +30,7 @@ func (c *Client) AddJob(feed feedItem) error {
cron: c.cron,
cache: c.cache,
cacheDuration: feed.CacheDuration,
cacheFiltersHash: c.cacheFiltersHash,
cacheFiltersHash: "",
}
// add pvrs
@@ -40,6 +40,7 @@ func (c *Client) AddJob(feed feedItem) error {
return fmt.Errorf("pvr object does not exist: %v", p)
}
job.pvrs[p] = po
job.cacheFiltersHash += po.GetFiltersHash()
}
// schedule job