diff --git a/README.md b/README.md index 58ad624a..e5e765ff 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: v5.8.3.8933 - Package version: 1.0.1 -- Generator version: 7.6.0 +- Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/docs/AddMovieMethod.md b/docs/AddMovieMethod.md index d78e4590..f6d4aa46 100644 --- a/docs/AddMovieMethod.md +++ b/docs/AddMovieMethod.md @@ -1,10 +1,13 @@ # AddMovieMethod -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `MANUAL` (value: `'manual'`) + +* `LIST` (value: `'list'`) + +* `COLLECTION` (value: `'collection'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApplyTags.md b/docs/ApplyTags.md index 4633ae2c..d7461632 100644 --- a/docs/ApplyTags.md +++ b/docs/ApplyTags.md @@ -1,10 +1,13 @@ # ApplyTags -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ADD` (value: `'add'`) + +* `REMOVE` (value: `'remove'`) + +* `REPLACE` (value: `'replace'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthenticationRequiredType.md b/docs/AuthenticationRequiredType.md index 88612f37..4f51e47a 100644 --- a/docs/AuthenticationRequiredType.md +++ b/docs/AuthenticationRequiredType.md @@ -1,10 +1,11 @@ # AuthenticationRequiredType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ENABLED` (value: `'enabled'`) + +* `DISABLEDFORLOCALADDRESSES` (value: `'disabledForLocalAddresses'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthenticationType.md b/docs/AuthenticationType.md index 282ee3f8..641c574b 100644 --- a/docs/AuthenticationType.md +++ b/docs/AuthenticationType.md @@ -1,10 +1,15 @@ # AuthenticationType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NONE` (value: `'none'`) + +* `BASIC` (value: `'basic'`) + +* `FORMS` (value: `'forms'`) + +* `EXTERNAL` (value: `'external'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BackupType.md b/docs/BackupType.md index 5a6ecf26..09368256 100644 --- a/docs/BackupType.md +++ b/docs/BackupType.md @@ -1,10 +1,13 @@ # BackupType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `SCHEDULED` (value: `'scheduled'`) + +* `MANUAL` (value: `'manual'`) + +* `UPDATE` (value: `'update'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CertificateValidationType.md b/docs/CertificateValidationType.md index 8514aef0..68ab0241 100644 --- a/docs/CertificateValidationType.md +++ b/docs/CertificateValidationType.md @@ -1,10 +1,13 @@ # CertificateValidationType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ENABLED` (value: `'enabled'`) + +* `DISABLEDFORLOCALADDRESSES` (value: `'disabledForLocalAddresses'`) + +* `DISABLED` (value: `'disabled'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ColonReplacementFormat.md b/docs/ColonReplacementFormat.md index 763632fb..ef48c025 100644 --- a/docs/ColonReplacementFormat.md +++ b/docs/ColonReplacementFormat.md @@ -1,10 +1,15 @@ # ColonReplacementFormat -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `DELETE` (value: `'delete'`) + +* `DASH` (value: `'dash'`) + +* `SPACEDASH` (value: `'spaceDash'`) + +* `SPACEDASHSPACE` (value: `'spaceDashSpace'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CommandPriority.md b/docs/CommandPriority.md index 57072418..1e85d5ad 100644 --- a/docs/CommandPriority.md +++ b/docs/CommandPriority.md @@ -1,10 +1,13 @@ # CommandPriority -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NORMAL` (value: `'normal'`) + +* `HIGH` (value: `'high'`) + +* `LOW` (value: `'low'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CommandResult.md b/docs/CommandResult.md index 6e7085da..72eed519 100644 --- a/docs/CommandResult.md +++ b/docs/CommandResult.md @@ -1,10 +1,13 @@ # CommandResult -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `SUCCESSFUL` (value: `'successful'`) + +* `UNSUCCESSFUL` (value: `'unsuccessful'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CommandStatus.md b/docs/CommandStatus.md index 7f4fe7a2..01e6b987 100644 --- a/docs/CommandStatus.md +++ b/docs/CommandStatus.md @@ -1,10 +1,21 @@ # CommandStatus -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `QUEUED` (value: `'queued'`) + +* `STARTED` (value: `'started'`) + +* `COMPLETED` (value: `'completed'`) + +* `FAILED` (value: `'failed'`) + +* `ABORTED` (value: `'aborted'`) + +* `CANCELLED` (value: `'cancelled'`) + +* `ORPHANED` (value: `'orphaned'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CommandTrigger.md b/docs/CommandTrigger.md index 81b66a95..33007275 100644 --- a/docs/CommandTrigger.md +++ b/docs/CommandTrigger.md @@ -1,10 +1,13 @@ # CommandTrigger -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNSPECIFIED` (value: `'unspecified'`) + +* `MANUAL` (value: `'manual'`) + +* `SCHEDULED` (value: `'scheduled'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreditType.md b/docs/CreditType.md index 16b16db6..867874a0 100644 --- a/docs/CreditType.md +++ b/docs/CreditType.md @@ -1,10 +1,11 @@ # CreditType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `CAST` (value: `'cast'`) + +* `CREW` (value: `'crew'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DatabaseType.md b/docs/DatabaseType.md index 472579dc..2f02d3a7 100644 --- a/docs/DatabaseType.md +++ b/docs/DatabaseType.md @@ -1,10 +1,11 @@ # DatabaseType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `SQLITE` (value: `'sqLite'`) + +* `POSTGRESQL` (value: `'postgreSQL'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DownloadProtocol.md b/docs/DownloadProtocol.md index 3b85f2ba..d784a95b 100644 --- a/docs/DownloadProtocol.md +++ b/docs/DownloadProtocol.md @@ -1,10 +1,13 @@ # DownloadProtocol -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `USENET` (value: `'usenet'`) + +* `TORRENT` (value: `'torrent'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtraFileType.md b/docs/ExtraFileType.md index 19c589fd..2fac51ae 100644 --- a/docs/ExtraFileType.md +++ b/docs/ExtraFileType.md @@ -1,10 +1,13 @@ # ExtraFileType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `SUBTITLE` (value: `'subtitle'`) + +* `METADATA` (value: `'metadata'`) + +* `OTHER` (value: `'other'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FileDateType.md b/docs/FileDateType.md index 08c2ae25..72542f79 100644 --- a/docs/FileDateType.md +++ b/docs/FileDateType.md @@ -1,10 +1,13 @@ # FileDateType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NONE` (value: `'none'`) + +* `CINEMAS` (value: `'cinemas'`) + +* `RELEASE` (value: `'release'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/HealthCheckResult.md b/docs/HealthCheckResult.md index 78558ecf..6ed5f070 100644 --- a/docs/HealthCheckResult.md +++ b/docs/HealthCheckResult.md @@ -1,10 +1,15 @@ # HealthCheckResult -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `OK` (value: `'ok'`) + +* `NOTICE` (value: `'notice'`) + +* `WARNING` (value: `'warning'`) + +* `ERROR` (value: `'error'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ImportListType.md b/docs/ImportListType.md index bc153909..caaeadbc 100644 --- a/docs/ImportListType.md +++ b/docs/ImportListType.md @@ -1,10 +1,21 @@ # ImportListType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `PROGRAM` (value: `'program'`) + +* `TMDB` (value: `'tmdb'`) + +* `TRAKT` (value: `'trakt'`) + +* `PLEX` (value: `'plex'`) + +* `SIMKL` (value: `'simkl'`) + +* `OTHER` (value: `'other'`) + +* `ADVANCED` (value: `'advanced'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MediaCoverTypes.md b/docs/MediaCoverTypes.md index 5473f37e..1088a711 100644 --- a/docs/MediaCoverTypes.md +++ b/docs/MediaCoverTypes.md @@ -1,10 +1,21 @@ # MediaCoverTypes -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `POSTER` (value: `'poster'`) + +* `BANNER` (value: `'banner'`) + +* `FANART` (value: `'fanart'`) + +* `SCREENSHOT` (value: `'screenshot'`) + +* `HEADSHOT` (value: `'headshot'`) + +* `CLEARLOGO` (value: `'clearlogo'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Modifier.md b/docs/Modifier.md index 82b5ec09..7361fcce 100644 --- a/docs/Modifier.md +++ b/docs/Modifier.md @@ -1,10 +1,19 @@ # Modifier -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NONE` (value: `'none'`) + +* `REGIONAL` (value: `'regional'`) + +* `SCREENER` (value: `'screener'`) + +* `RAWHD` (value: `'rawhd'`) + +* `BRDISK` (value: `'brdisk'`) + +* `REMUX` (value: `'remux'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MonitorTypes.md b/docs/MonitorTypes.md index f19a42b9..185b3784 100644 --- a/docs/MonitorTypes.md +++ b/docs/MonitorTypes.md @@ -1,10 +1,13 @@ # MonitorTypes -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `MOVIEONLY` (value: `'movieOnly'`) + +* `MOVIEANDCOLLECTION` (value: `'movieAndCollection'`) + +* `NONE` (value: `'none'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MovieHistoryEventType.md b/docs/MovieHistoryEventType.md index 0add18ff..7da12c32 100644 --- a/docs/MovieHistoryEventType.md +++ b/docs/MovieHistoryEventType.md @@ -1,10 +1,23 @@ # MovieHistoryEventType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `GRABBED` (value: `'grabbed'`) + +* `DOWNLOADFOLDERIMPORTED` (value: `'downloadFolderImported'`) + +* `DOWNLOADFAILED` (value: `'downloadFailed'`) + +* `MOVIEFILEDELETED` (value: `'movieFileDeleted'`) + +* `MOVIEFOLDERIMPORTED` (value: `'movieFolderImported'`) + +* `MOVIEFILERENAMED` (value: `'movieFileRenamed'`) + +* `DOWNLOADIGNORED` (value: `'downloadIgnored'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MovieRuntimeFormatType.md b/docs/MovieRuntimeFormatType.md index c6e296f9..3bfcd45b 100644 --- a/docs/MovieRuntimeFormatType.md +++ b/docs/MovieRuntimeFormatType.md @@ -1,10 +1,11 @@ # MovieRuntimeFormatType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `HOURSMINUTES` (value: `'hoursMinutes'`) + +* `MINUTES` (value: `'minutes'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MovieStatusType.md b/docs/MovieStatusType.md index 4bd6f1cf..51ad98fe 100644 --- a/docs/MovieStatusType.md +++ b/docs/MovieStatusType.md @@ -1,10 +1,17 @@ # MovieStatusType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `TBA` (value: `'tba'`) + +* `ANNOUNCED` (value: `'announced'`) + +* `INCINEMAS` (value: `'inCinemas'`) + +* `RELEASED` (value: `'released'`) + +* `DELETED` (value: `'deleted'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PrivacyLevel.md b/docs/PrivacyLevel.md index 5e91912b..be62d5ce 100644 --- a/docs/PrivacyLevel.md +++ b/docs/PrivacyLevel.md @@ -1,10 +1,15 @@ # PrivacyLevel -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NORMAL` (value: `'normal'`) + +* `PASSWORD` (value: `'password'`) + +* `APIKEY` (value: `'apiKey'`) + +* `USERNAME` (value: `'userName'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProperDownloadTypes.md b/docs/ProperDownloadTypes.md index 55d49059..4e7af565 100644 --- a/docs/ProperDownloadTypes.md +++ b/docs/ProperDownloadTypes.md @@ -1,10 +1,13 @@ # ProperDownloadTypes -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `PREFERANDUPGRADE` (value: `'preferAndUpgrade'`) + +* `DONOTUPGRADE` (value: `'doNotUpgrade'`) + +* `DONOTPREFER` (value: `'doNotPrefer'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProviderMessageType.md b/docs/ProviderMessageType.md index e8f9f212..d27c94e7 100644 --- a/docs/ProviderMessageType.md +++ b/docs/ProviderMessageType.md @@ -1,10 +1,13 @@ # ProviderMessageType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `INFO` (value: `'info'`) + +* `WARNING` (value: `'warning'`) + +* `ERROR` (value: `'error'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProxyType.md b/docs/ProxyType.md index 079564e7..d7255650 100644 --- a/docs/ProxyType.md +++ b/docs/ProxyType.md @@ -1,10 +1,13 @@ # ProxyType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `HTTP` (value: `'http'`) + +* `SOCKS4` (value: `'socks4'`) + +* `SOCKS5` (value: `'socks5'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QualitySource.md b/docs/QualitySource.md index 3f944a94..1402b21e 100644 --- a/docs/QualitySource.md +++ b/docs/QualitySource.md @@ -1,10 +1,27 @@ # QualitySource -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `CAM` (value: `'cam'`) + +* `TELESYNC` (value: `'telesync'`) + +* `TELECINE` (value: `'telecine'`) + +* `WORKPRINT` (value: `'workprint'`) + +* `DVD` (value: `'dvd'`) + +* `TV` (value: `'tv'`) + +* `WEBDL` (value: `'webdl'`) + +* `WEBRIP` (value: `'webrip'`) + +* `BLURAY` (value: `'bluray'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RatingType.md b/docs/RatingType.md index a5d494fa..6f4549b9 100644 --- a/docs/RatingType.md +++ b/docs/RatingType.md @@ -1,10 +1,11 @@ # RatingType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `USER` (value: `'user'`) + +* `CRITIC` (value: `'critic'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RejectionType.md b/docs/RejectionType.md index ed161594..7abff75e 100644 --- a/docs/RejectionType.md +++ b/docs/RejectionType.md @@ -1,10 +1,11 @@ # RejectionType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `PERMANENT` (value: `'permanent'`) + +* `TEMPORARY` (value: `'temporary'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RescanAfterRefreshType.md b/docs/RescanAfterRefreshType.md index c438a879..d42b61e8 100644 --- a/docs/RescanAfterRefreshType.md +++ b/docs/RescanAfterRefreshType.md @@ -1,10 +1,13 @@ # RescanAfterRefreshType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ALWAYS` (value: `'always'`) + +* `AFTERMANUAL` (value: `'afterManual'`) + +* `NEVER` (value: `'never'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RuntimeMode.md b/docs/RuntimeMode.md index d165faf0..84ba478c 100644 --- a/docs/RuntimeMode.md +++ b/docs/RuntimeMode.md @@ -1,10 +1,13 @@ # RuntimeMode -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `CONSOLE` (value: `'console'`) + +* `SERVICE` (value: `'service'`) + +* `TRAY` (value: `'tray'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SortDirection.md b/docs/SortDirection.md index 60b8a52b..760429ea 100644 --- a/docs/SortDirection.md +++ b/docs/SortDirection.md @@ -1,10 +1,13 @@ # SortDirection -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `DEFAULT` (value: `'default'`) + +* `ASCENDING` (value: `'ascending'`) + +* `DESCENDING` (value: `'descending'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SourceType.md b/docs/SourceType.md index 0b121725..f7ee33b4 100644 --- a/docs/SourceType.md +++ b/docs/SourceType.md @@ -1,10 +1,15 @@ # SourceType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `TMDB` (value: `'tmdb'`) + +* `MAPPINGS` (value: `'mappings'`) + +* `USER` (value: `'user'`) + +* `INDEXER` (value: `'indexer'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TMDbCountryCode.md b/docs/TMDbCountryCode.md index 6394c41e..d7c01ca4 100644 --- a/docs/TMDbCountryCode.md +++ b/docs/TMDbCountryCode.md @@ -1,10 +1,29 @@ # TMDbCountryCode -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `AU` (value: `'au'`) + +* `BR` (value: `'br'`) + +* `CA` (value: `'ca'`) + +* `FR` (value: `'fr'`) + +* `DE` (value: `'de'`) + +* `GB` (value: `'gb'`) + +* `IE` (value: `'ie'`) + +* `IT` (value: `'it'`) + +* `ES` (value: `'es'`) + +* `US` (value: `'us'`) + +* `NZ` (value: `'nz'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TrackedDownloadState.md b/docs/TrackedDownloadState.md index 2dc5cd9d..3b7f4439 100644 --- a/docs/TrackedDownloadState.md +++ b/docs/TrackedDownloadState.md @@ -1,10 +1,23 @@ # TrackedDownloadState -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `DOWNLOADING` (value: `'downloading'`) + +* `IMPORTBLOCKED` (value: `'importBlocked'`) + +* `IMPORTPENDING` (value: `'importPending'`) + +* `IMPORTING` (value: `'importing'`) + +* `IMPORTED` (value: `'imported'`) + +* `FAILEDPENDING` (value: `'failedPending'`) + +* `FAILED` (value: `'failed'`) + +* `IGNORED` (value: `'ignored'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TrackedDownloadStatus.md b/docs/TrackedDownloadStatus.md index 0dcf76f2..7195b7a2 100644 --- a/docs/TrackedDownloadStatus.md +++ b/docs/TrackedDownloadStatus.md @@ -1,10 +1,13 @@ # TrackedDownloadStatus -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `OK` (value: `'ok'`) + +* `WARNING` (value: `'warning'`) + +* `ERROR` (value: `'error'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateMechanism.md b/docs/UpdateMechanism.md index ad7fefaa..4cb3670e 100644 --- a/docs/UpdateMechanism.md +++ b/docs/UpdateMechanism.md @@ -1,10 +1,17 @@ # UpdateMechanism -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `BUILTIN` (value: `'builtIn'`) + +* `SCRIPT` (value: `'script'`) + +* `EXTERNAL` (value: `'external'`) + +* `APT` (value: `'apt'`) + +* `DOCKER` (value: `'docker'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/radarr/api/alternative_title_api.py b/radarr/api/alternative_title_api.py index 26af96e8..7464b82f 100644 --- a/radarr/api/alternative_title_api.py +++ b/radarr/api/alternative_title_api.py @@ -263,13 +263,14 @@ def _get_alttitle_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -540,13 +541,14 @@ def _list_alttitle_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/api_info_api.py b/radarr/api/api_info_api.py index e91c2564..34028601 100644 --- a/radarr/api/api_info_api.py +++ b/radarr/api/api_info_api.py @@ -246,11 +246,12 @@ def _get_api_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/auto_tagging_api.py b/radarr/api/auto_tagging_api.py index fdba2a1e..a21f041c 100644 --- a/radarr/api/auto_tagging_api.py +++ b/radarr/api/auto_tagging_api.py @@ -264,13 +264,14 @@ def _create_auto_tagging_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -785,13 +786,14 @@ def _get_auto_tagging_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1028,11 +1030,12 @@ def _list_auto_tagging_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1269,11 +1272,12 @@ def _list_auto_tagging_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1540,13 +1544,14 @@ def _update_auto_tagging_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/backup_api.py b/radarr/api/backup_api.py index e62a434a..f0e8ea8b 100644 --- a/radarr/api/backup_api.py +++ b/radarr/api/backup_api.py @@ -983,13 +983,14 @@ def _list_system_backup_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/blocklist_api.py b/radarr/api/blocklist_api.py index a8e28675..c6bb26a0 100644 --- a/radarr/api/blocklist_api.py +++ b/radarr/api/blocklist_api.py @@ -871,11 +871,12 @@ def _get_blocklist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1129,13 +1130,14 @@ def _list_blocklist_movie_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/calendar_api.py b/radarr/api/calendar_api.py index 11082025..abe70db7 100644 --- a/radarr/api/calendar_api.py +++ b/radarr/api/calendar_api.py @@ -335,11 +335,12 @@ def _list_calendar_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/collection_api.py b/radarr/api/collection_api.py index a427de42..df34f2ff 100644 --- a/radarr/api/collection_api.py +++ b/radarr/api/collection_api.py @@ -264,13 +264,14 @@ def _get_collection_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -524,11 +525,12 @@ def _list_collection_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1058,13 +1060,14 @@ def _update_collection_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/command_api.py b/radarr/api/command_api.py index aa2141cb..7ead4a49 100644 --- a/radarr/api/command_api.py +++ b/radarr/api/command_api.py @@ -263,11 +263,12 @@ def _create_command_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -782,13 +783,14 @@ def _get_command_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1025,13 +1027,14 @@ def _list_command_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/credit_api.py b/radarr/api/credit_api.py index 7f480df1..c213773f 100644 --- a/radarr/api/credit_api.py +++ b/radarr/api/credit_api.py @@ -532,13 +532,14 @@ def _get_credit_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/custom_filter_api.py b/radarr/api/custom_filter_api.py index a1f02386..e8b14e4c 100644 --- a/radarr/api/custom_filter_api.py +++ b/radarr/api/custom_filter_api.py @@ -263,13 +263,14 @@ def _create_custom_filter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_custom_filter_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_custom_filter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1300,13 +1303,14 @@ def _update_custom_filter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/custom_format_api.py b/radarr/api/custom_format_api.py index 349e9062..62b2cb4b 100644 --- a/radarr/api/custom_format_api.py +++ b/radarr/api/custom_format_api.py @@ -264,13 +264,14 @@ def _create_custom_format_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -785,13 +786,14 @@ def _get_custom_format_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1028,11 +1030,12 @@ def _list_custom_format_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1269,11 +1272,12 @@ def _list_custom_format_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1540,13 +1544,14 @@ def _update_custom_format_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/cutoff_api.py b/radarr/api/cutoff_api.py index cbba85f6..4f544737 100644 --- a/radarr/api/cutoff_api.py +++ b/radarr/api/cutoff_api.py @@ -334,11 +334,12 @@ def _get_wanted_cutoff_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/delay_profile_api.py b/radarr/api/delay_profile_api.py index 72401836..fd926fa2 100644 --- a/radarr/api/delay_profile_api.py +++ b/radarr/api/delay_profile_api.py @@ -263,13 +263,14 @@ def _create_delay_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_delay_profile_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_delay_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1300,13 +1303,14 @@ def _update_delay_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1588,13 +1592,14 @@ def _update_delay_profile_reorder_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/disk_space_api.py b/radarr/api/disk_space_api.py index e3cb41ca..73b9ae21 100644 --- a/radarr/api/disk_space_api.py +++ b/radarr/api/disk_space_api.py @@ -247,13 +247,14 @@ def _list_disk_space_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/download_client_api.py b/radarr/api/download_client_api.py index a609df17..d4e24a4e 100644 --- a/radarr/api/download_client_api.py +++ b/radarr/api/download_client_api.py @@ -281,11 +281,12 @@ def _create_download_client_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1341,13 +1342,14 @@ def _get_download_client_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1584,11 +1586,12 @@ def _list_download_client_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1825,11 +1828,12 @@ def _list_download_client_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2081,11 +2085,12 @@ def _put_download_client_bulk_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2897,11 +2902,12 @@ def _update_download_client_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/download_client_config_api.py b/radarr/api/download_client_config_api.py index 0a47c7d3..28e3bbe3 100644 --- a/radarr/api/download_client_config_api.py +++ b/radarr/api/download_client_config_api.py @@ -248,11 +248,12 @@ def _get_download_client_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_download_client_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_download_client_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/extra_file_api.py b/radarr/api/extra_file_api.py index 71b08b87..0aa3cb4b 100644 --- a/radarr/api/extra_file_api.py +++ b/radarr/api/extra_file_api.py @@ -265,13 +265,14 @@ def _list_extra_file_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/health_api.py b/radarr/api/health_api.py index 1420c1fe..2b9bc636 100644 --- a/radarr/api/health_api.py +++ b/radarr/api/health_api.py @@ -247,13 +247,14 @@ def _list_health_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/history_api.py b/radarr/api/history_api.py index 47754f65..4e06fef1 100644 --- a/radarr/api/history_api.py +++ b/radarr/api/history_api.py @@ -676,11 +676,12 @@ def _get_history_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -968,11 +969,12 @@ def _list_history_movie_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1269,11 +1271,12 @@ def _list_history_since_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/host_config_api.py b/radarr/api/host_config_api.py index f3605340..45d15e58 100644 --- a/radarr/api/host_config_api.py +++ b/radarr/api/host_config_api.py @@ -248,13 +248,14 @@ def _get_host_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -506,13 +507,14 @@ def _get_host_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -779,13 +781,14 @@ def _update_host_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/import_exclusions_api.py b/radarr/api/import_exclusions_api.py index 496bad8c..ec51194f 100644 --- a/radarr/api/import_exclusions_api.py +++ b/radarr/api/import_exclusions_api.py @@ -263,13 +263,14 @@ def _create_exclusions_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1050,13 +1051,14 @@ def _get_exclusions_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1293,13 +1295,14 @@ def _list_exclusions_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1566,13 +1569,14 @@ def _update_exclusions_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/import_list_api.py b/radarr/api/import_list_api.py index 20dbd2cf..9e609535 100644 --- a/radarr/api/import_list_api.py +++ b/radarr/api/import_list_api.py @@ -281,11 +281,12 @@ def _create_import_list_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1341,13 +1342,14 @@ def _get_import_list_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1584,11 +1586,12 @@ def _list_import_list_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1825,11 +1828,12 @@ def _list_import_list_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2081,11 +2085,12 @@ def _put_import_list_bulk_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2897,11 +2902,12 @@ def _update_import_list_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/import_list_config_api.py b/radarr/api/import_list_config_api.py index aed3744e..c795391e 100644 --- a/radarr/api/import_list_config_api.py +++ b/radarr/api/import_list_config_api.py @@ -248,11 +248,12 @@ def _get_import_list_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_import_list_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_import_list_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/indexer_api.py b/radarr/api/indexer_api.py index 9f38eda6..6f3fe1e4 100644 --- a/radarr/api/indexer_api.py +++ b/radarr/api/indexer_api.py @@ -281,11 +281,12 @@ def _create_indexer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1341,13 +1342,14 @@ def _get_indexer_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1584,11 +1586,12 @@ def _list_indexer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1825,11 +1828,12 @@ def _list_indexer_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2081,11 +2085,12 @@ def _put_indexer_bulk_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2897,11 +2902,12 @@ def _update_indexer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/indexer_config_api.py b/radarr/api/indexer_config_api.py index 744c2c3d..4109ac9e 100644 --- a/radarr/api/indexer_config_api.py +++ b/radarr/api/indexer_config_api.py @@ -248,11 +248,12 @@ def _get_indexer_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_indexer_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_indexer_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/indexer_flag_api.py b/radarr/api/indexer_flag_api.py index 89ce01a5..3ee73013 100644 --- a/radarr/api/indexer_flag_api.py +++ b/radarr/api/indexer_flag_api.py @@ -247,13 +247,14 @@ def _list_indexer_flag_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/language_api.py b/radarr/api/language_api.py index 2614ac43..b68f3055 100644 --- a/radarr/api/language_api.py +++ b/radarr/api/language_api.py @@ -263,13 +263,14 @@ def _get_language_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -506,13 +507,14 @@ def _list_language_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/localization_api.py b/radarr/api/localization_api.py index b7aeeb79..b8258eeb 100644 --- a/radarr/api/localization_api.py +++ b/radarr/api/localization_api.py @@ -247,13 +247,14 @@ def _get_localization_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -490,11 +491,12 @@ def _get_localization_language_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/log_api.py b/radarr/api/log_api.py index 47177523..52eb00bb 100644 --- a/radarr/api/log_api.py +++ b/radarr/api/log_api.py @@ -334,11 +334,12 @@ def _get_log_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/log_file_api.py b/radarr/api/log_file_api.py index 803d0710..4ca2c3ed 100644 --- a/radarr/api/log_file_api.py +++ b/radarr/api/log_file_api.py @@ -499,13 +499,14 @@ def _list_log_file_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/manual_import_api.py b/radarr/api/manual_import_api.py index fb5714cf..4226c83f 100644 --- a/radarr/api/manual_import_api.py +++ b/radarr/api/manual_import_api.py @@ -581,11 +581,12 @@ def _list_manual_import_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/media_management_config_api.py b/radarr/api/media_management_config_api.py index 721102a3..093351c4 100644 --- a/radarr/api/media_management_config_api.py +++ b/radarr/api/media_management_config_api.py @@ -248,11 +248,12 @@ def _get_media_management_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_media_management_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_media_management_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/metadata_api.py b/radarr/api/metadata_api.py index 8542d9e1..504b2c9b 100644 --- a/radarr/api/metadata_api.py +++ b/radarr/api/metadata_api.py @@ -280,11 +280,12 @@ def _create_metadata_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1077,13 +1078,14 @@ def _get_metadata_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1320,11 +1322,12 @@ def _list_metadata_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1561,11 +1564,12 @@ def _list_metadata_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2364,11 +2368,12 @@ def _update_metadata_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/metadata_config_api.py b/radarr/api/metadata_config_api.py index c9394e4e..423a5e91 100644 --- a/radarr/api/metadata_config_api.py +++ b/radarr/api/metadata_config_api.py @@ -248,11 +248,12 @@ def _get_metadata_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_metadata_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_metadata_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/missing_api.py b/radarr/api/missing_api.py index 265774f8..a9f36d49 100644 --- a/radarr/api/missing_api.py +++ b/radarr/api/missing_api.py @@ -334,11 +334,12 @@ def _get_wanted_missing_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/movie_api.py b/radarr/api/movie_api.py index 24e55a7f..31648f1e 100644 --- a/radarr/api/movie_api.py +++ b/radarr/api/movie_api.py @@ -263,13 +263,14 @@ def _create_movie_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -818,13 +819,14 @@ def _get_movie_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1112,13 +1114,14 @@ def _list_movie_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1402,13 +1405,14 @@ def _update_movie_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/movie_file_api.py b/radarr/api/movie_file_api.py index 8ef2916c..0e9e1a1e 100644 --- a/radarr/api/movie_file_api.py +++ b/radarr/api/movie_file_api.py @@ -777,13 +777,14 @@ def _get_movie_file_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1056,11 +1057,12 @@ def _list_movie_file_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1590,13 +1592,14 @@ def _update_movie_file_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/naming_config_api.py b/radarr/api/naming_config_api.py index 41761af6..96da5faf 100644 --- a/radarr/api/naming_config_api.py +++ b/radarr/api/naming_config_api.py @@ -249,13 +249,14 @@ def _get_naming_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -507,13 +508,14 @@ def _get_naming_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1134,13 +1136,14 @@ def _update_naming_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/notification_api.py b/radarr/api/notification_api.py index 9f73ea9d..a1038f9d 100644 --- a/radarr/api/notification_api.py +++ b/radarr/api/notification_api.py @@ -280,11 +280,12 @@ def _create_notification_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1077,13 +1078,14 @@ def _get_notification_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1320,11 +1322,12 @@ def _list_notification_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1561,11 +1564,12 @@ def _list_notification_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2364,11 +2368,12 @@ def _update_notification_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/parse_api.py b/radarr/api/parse_api.py index 91ae6e85..d44a210d 100644 --- a/radarr/api/parse_api.py +++ b/radarr/api/parse_api.py @@ -265,13 +265,14 @@ def _get_parse_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/ping_api.py b/radarr/api/ping_api.py index 8efd1240..b025c23f 100644 --- a/radarr/api/ping_api.py +++ b/radarr/api/ping_api.py @@ -246,11 +246,12 @@ def _get_ping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -487,11 +488,12 @@ def _head_ping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/quality_definition_api.py b/radarr/api/quality_definition_api.py index fb45731b..ae33e194 100644 --- a/radarr/api/quality_definition_api.py +++ b/radarr/api/quality_definition_api.py @@ -263,13 +263,14 @@ def _get_quality_definition_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -506,13 +507,14 @@ def _list_quality_definition_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1045,13 +1047,14 @@ def _update_quality_definition_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/quality_profile_api.py b/radarr/api/quality_profile_api.py index 4c1bf6cf..9c8ce51e 100644 --- a/radarr/api/quality_profile_api.py +++ b/radarr/api/quality_profile_api.py @@ -263,13 +263,14 @@ def _create_quality_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_quality_profile_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_quality_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1300,13 +1303,14 @@ def _update_quality_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/quality_profile_schema_api.py b/radarr/api/quality_profile_schema_api.py index e79bb74e..eea774d4 100644 --- a/radarr/api/quality_profile_schema_api.py +++ b/radarr/api/quality_profile_schema_api.py @@ -246,13 +246,14 @@ def _get_qualityprofile_schema_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/queue_api.py b/radarr/api/queue_api.py index 716e6b71..5986ed0c 100644 --- a/radarr/api/queue_api.py +++ b/radarr/api/queue_api.py @@ -1074,11 +1074,12 @@ def _get_queue_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/queue_details_api.py b/radarr/api/queue_details_api.py index 4ef569a6..70e688cf 100644 --- a/radarr/api/queue_details_api.py +++ b/radarr/api/queue_details_api.py @@ -282,13 +282,14 @@ def _list_queue_details_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/queue_status_api.py b/radarr/api/queue_status_api.py index 8e59caad..b427a3ea 100644 --- a/radarr/api/queue_status_api.py +++ b/radarr/api/queue_status_api.py @@ -246,13 +246,14 @@ def _get_queue_status_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/release_api.py b/radarr/api/release_api.py index aafeb4ec..892a5a72 100644 --- a/radarr/api/release_api.py +++ b/radarr/api/release_api.py @@ -528,11 +528,12 @@ def _list_release_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/radarr/api/release_profile_api.py b/radarr/api/release_profile_api.py index 7aa3d05d..6ee5629b 100644 --- a/radarr/api/release_profile_api.py +++ b/radarr/api/release_profile_api.py @@ -263,13 +263,14 @@ def _create_release_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -786,13 +787,14 @@ def _get_release_profile_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1029,13 +1031,14 @@ def _list_release_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1302,13 +1305,14 @@ def _update_release_profile_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/release_push_api.py b/radarr/api/release_push_api.py index 19aa5e15..9c9e82ed 100644 --- a/radarr/api/release_push_api.py +++ b/radarr/api/release_push_api.py @@ -262,13 +262,14 @@ def _create_release_push_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/remote_path_mapping_api.py b/radarr/api/remote_path_mapping_api.py index 8a771e4b..a3499a77 100644 --- a/radarr/api/remote_path_mapping_api.py +++ b/radarr/api/remote_path_mapping_api.py @@ -263,13 +263,14 @@ def _create_remote_path_mapping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_remote_path_mapping_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_remote_path_mapping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1300,13 +1303,14 @@ def _update_remote_path_mapping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/rename_movie_api.py b/radarr/api/rename_movie_api.py index 75cba112..9c879550 100644 --- a/radarr/api/rename_movie_api.py +++ b/radarr/api/rename_movie_api.py @@ -265,13 +265,14 @@ def _list_rename_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/root_folder_api.py b/radarr/api/root_folder_api.py index 9c1cbf02..3abde9a2 100644 --- a/radarr/api/root_folder_api.py +++ b/radarr/api/root_folder_api.py @@ -263,13 +263,14 @@ def _create_root_folder_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_root_folder_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_root_folder_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/system_api.py b/radarr/api/system_api.py index 1397616d..f7312abe 100644 --- a/radarr/api/system_api.py +++ b/radarr/api/system_api.py @@ -1186,13 +1186,14 @@ def _get_system_status_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/tag_api.py b/radarr/api/tag_api.py index be5327fa..4f97945e 100644 --- a/radarr/api/tag_api.py +++ b/radarr/api/tag_api.py @@ -263,13 +263,14 @@ def _create_tag_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -784,13 +785,14 @@ def _get_tag_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1027,13 +1029,14 @@ def _list_tag_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -1300,13 +1303,14 @@ def _update_tag_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/tag_details_api.py b/radarr/api/tag_details_api.py index 0d07545f..850c01fc 100644 --- a/radarr/api/tag_details_api.py +++ b/radarr/api/tag_details_api.py @@ -263,13 +263,14 @@ def _get_tag_detail_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -506,13 +507,14 @@ def _list_tag_detail_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/task_api.py b/radarr/api/task_api.py index d44f5027..59c4a703 100644 --- a/radarr/api/task_api.py +++ b/radarr/api/task_api.py @@ -263,13 +263,14 @@ def _get_system_task_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -506,13 +507,14 @@ def _list_system_task_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/ui_config_api.py b/radarr/api/ui_config_api.py index 52e44297..da037bd5 100644 --- a/radarr/api/ui_config_api.py +++ b/radarr/api/ui_config_api.py @@ -248,11 +248,12 @@ def _get_ui_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -504,13 +505,14 @@ def _get_ui_config_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -777,13 +779,14 @@ def _update_ui_config_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/radarr/api/update_api.py b/radarr/api/update_api.py index ec904b67..fd6d2c5f 100644 --- a/radarr/api/update_api.py +++ b/radarr/api/update_api.py @@ -247,13 +247,14 @@ def _list_update_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api/update_log_file_api.py b/radarr/api/update_log_file_api.py index 0b7efdd6..79d448f0 100644 --- a/radarr/api/update_log_file_api.py +++ b/radarr/api/update_log_file_api.py @@ -499,13 +499,14 @@ def _list_log_file_update_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting diff --git a/radarr/api_client.py b/radarr/api_client.py index 8e0dbc7f..d56763bc 100644 --- a/radarr/api_client.py +++ b/radarr/api_client.py @@ -227,7 +227,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -314,10 +314,7 @@ def response_deserialize( match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - if response_type in ["bytearray", "str"]: - return_data = self.__deserialize_primitive(response_text, response_type) - else: - return_data = self.deserialize(response_text, response_type) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -385,21 +382,35 @@ def sanitize_for_serialization(self, obj): for key, val in obj_dict.items() } - def deserialize(self, response_text, response_type): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for deserialized object, or string of class name. + :param content_type: content type of response. :return: deserialized object. """ # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif content_type.startswith("application/json"): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif content_type.startswith("text/plain"): data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) return self.__deserialize(data, response_type) diff --git a/radarr/configuration.py b/radarr/configuration.py index bbd35f84..2a32a56d 100644 --- a/radarr/configuration.py +++ b/radarr/configuration.py @@ -32,6 +32,9 @@ class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. @@ -54,6 +57,7 @@ class Configuration: values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. + :param retries: Number of retries for API requests. :Example: @@ -85,7 +89,11 @@ def __init__(self, host=None, access_token=None, server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None ) -> None: """Constructor """ @@ -100,6 +108,9 @@ def __init__(self, host=None, self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -143,7 +154,10 @@ def __init__(self, host=None, self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -186,7 +200,7 @@ def __init__(self, host=None, self.safe_chars_for_path_param = '' """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation