Remove invalid RSS feeds on init and remove feeds when associated entity is removed

This commit is contained in:
advplyr 2022-12-31 14:08:34 -06:00
parent 0e6b0d3eff
commit c6763dee2d
5 changed files with 67 additions and 21 deletions

View file

@ -386,6 +386,9 @@ class ApiRouter {
}
}
// Close rss feed - remove from db and emit socket event
await this.rssFeedManager.closeFeedForEntityId(libraryItem.id)
// purge cover cache
if (libraryItem.media.coverPath) {
await this.cacheManager.purgeCoverCache(libraryItem.id)