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

This commit is contained in:
advplyr committed 2022-12-31 14:08:34 -06:00
1 parent 0e6b0d3eff
commit c6763dee2d
5 files changed
+67 -21

No files matched your search

+3
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)