fix(frontend): use region settings instead of hardcoded 'US' value for movie/TV ratings (#1006)

This commit is contained in:
TheCatLady
2021-02-23 04:06:23 -05:00
committed by GitHub
parent da5ca02f81
commit 6ecd202607
7 changed files with 33 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ export interface PublicSettingsResponse {
localLogin: boolean;
movie4kEnabled: boolean;
series4kEnabled: boolean;
region: string;
}
export interface CacheItem {

View File

@@ -84,6 +84,7 @@ interface FullPublicSettings extends PublicSettings {
localLogin: boolean;
movie4kEnabled: boolean;
series4kEnabled: boolean;
region: string;
}
export interface NotificationAgentConfig {
@@ -335,6 +336,7 @@ class Settings {
series4kEnabled: this.data.sonarr.some(
(sonarr) => sonarr.is4k && sonarr.isDefault
),
region: this.data.main.region,
};
}