fix: preserve blocklist on media deletion & optimise watchlist-sync (#2478)

This commit is contained in:
fallenbagel
2026-02-19 01:23:50 +05:00
committed by GitHub
parent 0e636a3f99
commit 9da8bb6dea
3 changed files with 41 additions and 3 deletions

View File

@@ -206,6 +206,19 @@ class Media {
Object.assign(this, init);
}
public resetServiceData(): void {
this.serviceId = null;
this.serviceId4k = null;
this.externalServiceId = null;
this.externalServiceId4k = null;
this.externalServiceSlug = null;
this.externalServiceSlug4k = null;
this.ratingKey = null;
this.ratingKey4k = null;
this.jellyfinMediaId = null;
this.jellyfinMediaId4k = null;
}
@AfterLoad()
public setPlexUrls(): void {
const { machineId, webAppUrl } = getSettings().plex;