-
-
Notifications
You must be signed in to change notification settings - Fork 29
10.11 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
10.11 #49
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a6c9669
Generate on 10.11
JPKribs 0eb8751
dovi vs dOVI
JPKribs 491f675
Remove `TaskTriggerType` in favor of `TaskTriggerInfoType`. Comment o…
JPKribs 0085d4f
Take 2
JPKribs af9e4c5
Typo
JPKribs d889a14
Re-run with new hdr10Plus fix
JPKribs 312e76c
wip
LePips File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// Manifest type for backups internal structure. | ||
| public struct BackupManifestDto: Codable, Hashable { | ||
| /// Gets or sets the backup engine version this backup was created with. | ||
| public var backupEngineVersion: String? | ||
| /// Gets or sets the date this backup was created with. | ||
| public var dateCreated: Date? | ||
| /// Gets or sets the contents of the backup archive. | ||
| public var options: BackupOptionsDto? | ||
| /// Gets or sets the path to the backup on the system. | ||
| public var path: String? | ||
| /// Gets or sets the jellyfin version this backup was created with. | ||
| public var serverVersion: String? | ||
|
|
||
| public init( | ||
| backupEngineVersion: String? = nil, | ||
| dateCreated: Date? = nil, | ||
| options: BackupOptionsDto? = nil, | ||
| path: String? = nil, | ||
| serverVersion: String? = nil | ||
| ) { | ||
| self.backupEngineVersion = backupEngineVersion | ||
| self.dateCreated = dateCreated | ||
| self.options = options | ||
| self.path = path | ||
| self.serverVersion = serverVersion | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.backupEngineVersion = try values.decodeIfPresent(String.self, forKey: "BackupEngineVersion") | ||
| self.dateCreated = try values.decodeIfPresent(Date.self, forKey: "DateCreated") | ||
| self.options = try values.decodeIfPresent(BackupOptionsDto.self, forKey: "Options") | ||
| self.path = try values.decodeIfPresent(String.self, forKey: "Path") | ||
| self.serverVersion = try values.decodeIfPresent(String.self, forKey: "ServerVersion") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(backupEngineVersion, forKey: "BackupEngineVersion") | ||
| try values.encodeIfPresent(dateCreated, forKey: "DateCreated") | ||
| try values.encodeIfPresent(options, forKey: "Options") | ||
| try values.encodeIfPresent(path, forKey: "Path") | ||
| try values.encodeIfPresent(serverVersion, forKey: "ServerVersion") | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// Defines the optional contents of the backup archive. | ||
| public struct BackupOptionsDto: Codable, Hashable { | ||
| /// Gets or sets a value indicating whether the archive contains the Database contents. | ||
| public var isDatabase: Bool? | ||
| /// Gets or sets a value indicating whether the archive contains the Metadata contents. | ||
| public var isMetadata: Bool? | ||
| /// Gets or sets a value indicating whether the archive contains the Subtitle contents. | ||
| public var isSubtitles: Bool? | ||
| /// Gets or sets a value indicating whether the archive contains the Trickplay contents. | ||
| public var isTrickplay: Bool? | ||
|
|
||
| public init(isDatabase: Bool? = nil, isMetadata: Bool? = nil, isSubtitles: Bool? = nil, isTrickplay: Bool? = nil) { | ||
| self.isDatabase = isDatabase | ||
| self.isMetadata = isMetadata | ||
| self.isSubtitles = isSubtitles | ||
| self.isTrickplay = isTrickplay | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.isDatabase = try values.decodeIfPresent(Bool.self, forKey: "Database") | ||
| self.isMetadata = try values.decodeIfPresent(Bool.self, forKey: "Metadata") | ||
| self.isSubtitles = try values.decodeIfPresent(Bool.self, forKey: "Subtitles") | ||
| self.isTrickplay = try values.decodeIfPresent(Bool.self, forKey: "Trickplay") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(isDatabase, forKey: "Database") | ||
| try values.encodeIfPresent(isMetadata, forKey: "Metadata") | ||
| try values.encodeIfPresent(isSubtitles, forKey: "Subtitles") | ||
| try values.encodeIfPresent(isTrickplay, forKey: "Trickplay") | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// Defines properties used to start a restore process. | ||
| public struct BackupRestoreRequestDto: Codable, Hashable { | ||
| /// Gets or Sets the name of the backup archive to restore from. Must be present in | ||
| /// MediaBrowser.Common.Configuration.IApplicationPaths.BackupPath. | ||
| public var archiveFileName: String? | ||
|
|
||
| public init(archiveFileName: String? = nil) { | ||
| self.archiveFileName = archiveFileName | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.archiveFileName = try values.decodeIfPresent(String.self, forKey: "ArchiveFileName") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(archiveFileName, forKey: "ArchiveFileName") | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// The branding options DTO for API use. | ||
| /// | ||
| /// This DTO excludes SplashscreenLocation to prevent it from being updated via API. | ||
| public struct BrandingOptionsDto: Codable, Hashable { | ||
| /// Gets or sets the custom CSS. | ||
| public var customCss: String? | ||
| /// Gets or sets the login disclaimer. | ||
| public var loginDisclaimer: String? | ||
| /// Gets or sets a value indicating whether to enable the splashscreen. | ||
| public var isSplashscreenEnabled: Bool? | ||
|
|
||
| public init(customCss: String? = nil, loginDisclaimer: String? = nil, isSplashscreenEnabled: Bool? = nil) { | ||
| self.customCss = customCss | ||
| self.loginDisclaimer = loginDisclaimer | ||
| self.isSplashscreenEnabled = isSplashscreenEnabled | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.customCss = try values.decodeIfPresent(String.self, forKey: "CustomCss") | ||
| self.loginDisclaimer = try values.decodeIfPresent(String.self, forKey: "LoginDisclaimer") | ||
| self.isSplashscreenEnabled = try values.decodeIfPresent(Bool.self, forKey: "SplashscreenEnabled") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(customCss, forKey: "CustomCss") | ||
| try values.encodeIfPresent(loginDisclaimer, forKey: "LoginDisclaimer") | ||
| try values.encodeIfPresent(isSplashscreenEnabled, forKey: "SplashscreenEnabled") | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// The custom value option for custom database providers. | ||
| public struct CustomDatabaseOption: Codable, Hashable { | ||
| /// Gets or sets the key of the value. | ||
| public var key: String? | ||
| /// Gets or sets the value. | ||
| public var value: String? | ||
|
|
||
| public init(key: String? = nil, value: String? = nil) { | ||
| self.key = key | ||
| self.value = value | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.key = try values.decodeIfPresent(String.self, forKey: "Key") | ||
| self.value = try values.decodeIfPresent(String.self, forKey: "Value") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(key, forKey: "Key") | ||
| try values.encodeIfPresent(value, forKey: "Value") | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // | ||
| // jellyfin-sdk-swift is subject to the terms of the Mozilla Public | ||
| // License, v2.0. If a copy of the MPL was not distributed with this | ||
| // file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
| // | ||
| // Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// Defines the options for a custom database connector. | ||
| public struct CustomDatabaseOptions: Codable, Hashable { | ||
| /// Gets or sets the connection string for the custom database provider. | ||
| public var connectionString: String? | ||
| /// Gets or sets the list of extra options for the custom provider. | ||
| public var options: [CustomDatabaseOption]? | ||
| /// Gets or sets the plugin assembly to search for providers. | ||
| public var pluginAssembly: String? | ||
| /// Gets or sets the Plugin name to search for database providers. | ||
| public var pluginName: String? | ||
|
|
||
| public init( | ||
| connectionString: String? = nil, | ||
| options: [CustomDatabaseOption]? = nil, | ||
| pluginAssembly: String? = nil, | ||
| pluginName: String? = nil | ||
| ) { | ||
| self.connectionString = connectionString | ||
| self.options = options | ||
| self.pluginAssembly = pluginAssembly | ||
| self.pluginName = pluginName | ||
| } | ||
|
|
||
| public init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
| self.connectionString = try values.decodeIfPresent(String.self, forKey: "ConnectionString") | ||
| self.options = try values.decodeIfPresent([CustomDatabaseOption].self, forKey: "Options") | ||
| self.pluginAssembly = try values.decodeIfPresent(String.self, forKey: "PluginAssembly") | ||
| self.pluginName = try values.decodeIfPresent(String.self, forKey: "PluginName") | ||
| } | ||
|
|
||
| public func encode(to encoder: Encoder) throws { | ||
| var values = encoder.container(keyedBy: StringCodingKey.self) | ||
| try values.encodeIfPresent(connectionString, forKey: "ConnectionString") | ||
| try values.encodeIfPresent(options, forKey: "Options") | ||
| try values.encodeIfPresent(pluginAssembly, forKey: "PluginAssembly") | ||
| try values.encodeIfPresent(pluginName, forKey: "PluginName") | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.