Skip to content

Commit 66cbddf

Browse files
fix: trim zero width chars from qp names for unused qp check
1 parent 4277cc4 commit 66cbddf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib/server/utils/arr/clients/radarr.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { BaseArrClient } from '../base.ts';
22
import { HttpError } from '$utils/http/types.ts';
3+
import { stripNamespaceSuffix } from '$lib/server/sync/namespace.ts';
34
import type {
45
RadarrMovie,
56
RadarrMovieFile,
@@ -131,7 +132,7 @@ export class RadarrClient extends BaseArrClient {
131132
minScore,
132133
progress,
133134
cutoffMet: customFormatScore >= cutoffScore,
134-
isProfilarrProfile: profilarrProfileNames?.has(profileName) ?? false
135+
isProfilarrProfile: profilarrProfileNames?.has(stripNamespaceSuffix(profileName)) ?? false
135136
};
136137
});
137138

src/lib/server/utils/arr/clients/sonarr.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { BaseArrClient } from '../base.ts';
2+
import { stripNamespaceSuffix } from '$lib/server/sync/namespace.ts';
23
import type {
34
SonarrSeries,
45
SonarrRelease,
@@ -119,7 +120,7 @@ export class SonarrClient extends BaseArrClient {
119120
sizeOnDisk: s.statistics.sizeOnDisk,
120121
percentOfEpisodes: s.statistics.percentOfEpisodes
121122
})),
122-
isProfilarrProfile: profilarrProfileNames?.has(profileName) ?? false
123+
isProfilarrProfile: profilarrProfileNames?.has(stripNamespaceSuffix(profileName)) ?? false
123124
};
124125
});
125126
}

0 commit comments

Comments
 (0)